Update source files for bracket style

This commit is contained in:
Marshall Greenblatt
2023-01-02 17:59:03 -05:00
parent d84b07a5cb
commit 3af3eab3e4
366 changed files with 7275 additions and 3834 deletions

View File

@ -171,8 +171,9 @@ class AccessibilityTestHandler : public TestHandler,
} else {
// Retrieve the "focus" event.
CefRefPtr<CefDictionaryValue> event;
if (!GetFirstMatchingEvent(value, "focus", event))
if (!GetFirstMatchingEvent(value, "focus", event)) {
return;
}
EXPECT_TRUE(event.get());
// Verify that focus is set to expected element edit_box.
@ -268,16 +269,18 @@ class AccessibilityTestHandler : public TestHandler,
static size_t GetUpdateListSize(CefRefPtr<CefValue> value) {
CefRefPtr<CefListValue> updates = GetUpdateList(value);
if (updates)
if (updates) {
return updates->GetSize();
}
return 0U;
}
static CefRefPtr<CefDictionaryValue> GetUpdateValue(CefRefPtr<CefValue> value,
size_t index) {
CefRefPtr<CefListValue> updates = GetUpdateList(value);
if (!updates)
if (!updates) {
return nullptr;
}
EXPECT_LT(index, updates->GetSize());
CefRefPtr<CefDictionaryValue> update = updates->GetDictionary(index);
EXPECT_TRUE(update);
@ -295,16 +298,18 @@ class AccessibilityTestHandler : public TestHandler,
static size_t GetEventListSize(CefRefPtr<CefValue> value) {
CefRefPtr<CefListValue> events = GetEventList(value);
if (events)
if (events) {
return events->GetSize();
}
return 0U;
}
static CefRefPtr<CefDictionaryValue> GetEventValue(CefRefPtr<CefValue> value,
size_t index) {
CefRefPtr<CefListValue> events = GetEventList(value);
if (!events)
if (!events) {
return nullptr;
}
EXPECT_LT(index, events->GetSize());
CefRefPtr<CefDictionaryValue> event = events->GetDictionary(index);
EXPECT_TRUE(event);
@ -314,10 +319,12 @@ class AccessibilityTestHandler : public TestHandler,
static void GetFirstUpdateAndEvent(CefRefPtr<CefValue> value,
CefRefPtr<CefDictionaryValue>& update,
CefRefPtr<CefDictionaryValue>& event) {
if (GetUpdateListSize(value) > 0U)
if (GetUpdateListSize(value) > 0U) {
update = GetUpdateValue(value, 0U);
if (GetEventListSize(value) > 0U)
}
if (GetEventListSize(value) > 0U) {
event = GetEventValue(value, 0U);
}
}
static bool GetFirstMatchingEvent(CefRefPtr<CefValue> value,