Fix style issues from commit de1bd28
This commit is contained in:
parent
de1bd286f8
commit
c3f2c2e91c
|
@ -990,8 +990,8 @@ class FrameNavExpectationsBrowserTestSingleNav
|
|||
V_DECLARE();
|
||||
// When browser-side navigation is enabled this method will be called
|
||||
// before the frame is created.
|
||||
V_EXPECT_TRUE(VerifySingleBrowserFrames(
|
||||
browser, frame, false, std::string()));
|
||||
V_EXPECT_TRUE(
|
||||
VerifySingleBrowserFrames(browser, frame, false, std::string()));
|
||||
V_EXPECT_TRUE(parent::OnBeforeBrowse(browser, frame, url));
|
||||
V_RETURN();
|
||||
}
|
||||
|
@ -1001,8 +1001,8 @@ class FrameNavExpectationsBrowserTestSingleNav
|
|||
V_DECLARE();
|
||||
// When browser-side navigation is enabled this method will be called
|
||||
// before the frame is created.
|
||||
V_EXPECT_TRUE(VerifySingleBrowserFrames(
|
||||
browser, frame, false, std::string()));
|
||||
V_EXPECT_TRUE(
|
||||
VerifySingleBrowserFrames(browser, frame, false, std::string()));
|
||||
V_EXPECT_TRUE(parent::GetResourceHandler(browser, frame));
|
||||
V_RETURN();
|
||||
}
|
||||
|
@ -1504,8 +1504,7 @@ class FrameNavExpectationsBrowserTestMultiNav
|
|||
// When browser-side navigation is enabled this method will be called
|
||||
// before the frame is created for the first navigation.
|
||||
V_EXPECT_TRUE(VerifySingleBrowserFrames(
|
||||
browser, frame, nav() == 0 ? false : true,
|
||||
expected_url));
|
||||
browser, frame, nav() == 0 ? false : true, expected_url));
|
||||
V_EXPECT_TRUE(parent::OnBeforeBrowse(browser, frame, url));
|
||||
V_RETURN();
|
||||
}
|
||||
|
@ -1519,8 +1518,7 @@ class FrameNavExpectationsBrowserTestMultiNav
|
|||
// When browser-side navigation is enabled this method will be called
|
||||
// before the frame is created for the first navigation.
|
||||
V_EXPECT_TRUE(VerifySingleBrowserFrames(
|
||||
browser, frame, nav() == 0 ? false : true,
|
||||
expected_url));
|
||||
browser, frame, nav() == 0 ? false : true, expected_url));
|
||||
V_EXPECT_TRUE(parent::GetResourceHandler(browser, frame));
|
||||
V_RETURN();
|
||||
}
|
||||
|
|
|
@ -3252,9 +3252,8 @@ class CancelAfterNavTestHandler : public TestHandler {
|
|||
got_get_resource_handler_.yes();
|
||||
|
||||
// The required delay is longer when browser-side navigation is enabled.
|
||||
CefPostDelayedTask(TID_UI,
|
||||
base::Bind(&CancelAfterNavTestHandler::CancelLoad, this),
|
||||
1000);
|
||||
CefPostDelayedTask(
|
||||
TID_UI, base::Bind(&CancelAfterNavTestHandler::CancelLoad, this), 1000);
|
||||
|
||||
return new StalledSchemeHandler();
|
||||
}
|
||||
|
|
|
@ -342,8 +342,7 @@ static struct TypeExpected {
|
|||
|
||||
class TypeExpectations {
|
||||
public:
|
||||
explicit TypeExpectations(bool navigation)
|
||||
: navigation_(navigation) {
|
||||
explicit TypeExpectations(bool navigation) : navigation_(navigation) {
|
||||
// Build the map of relevant requests.
|
||||
for (int i = 0;
|
||||
i < static_cast<int>(sizeof(g_type_expected) / sizeof(TypeExpected));
|
||||
|
@ -378,8 +377,7 @@ class TypeExpectations {
|
|||
const int actual_count = ++it->second;
|
||||
const int expected_count = g_type_expected[index].expected_count;
|
||||
EXPECT_LE(actual_count, expected_count)
|
||||
<< "File: " << file.c_str()
|
||||
<< "; Navigation: " << navigation_
|
||||
<< "File: " << file.c_str() << "; Navigation: " << navigation_
|
||||
<< "; Transition Type: " << transition_type
|
||||
<< "; Resource Type: " << resource_type;
|
||||
|
||||
|
@ -513,8 +511,7 @@ class TypeTestHandler : public TestHandler {
|
|||
get_expectations_.IsDone(false)) {
|
||||
completed_browser_side_ = true;
|
||||
// Destroy the test on the UI thread.
|
||||
CefPostTask(TID_UI,
|
||||
base::Bind(&TypeTestHandler::DestroyTest, this));
|
||||
CefPostTask(TID_UI, base::Bind(&TypeTestHandler::DestroyTest, this));
|
||||
}
|
||||
|
||||
return TestHandler::GetResourceHandler(browser, frame, request);
|
||||
|
|
Loading…
Reference in New Issue