@@ -135,8 +135,8 @@ void SetUp() override {
135
135
};
136
136
137
137
// Macro to simplify instantiation of parameterized tests.
138
- #define INSTANTIATE_TEST_CASES (cls ) \
139
- INSTANTIATE_TEST_CASE_P ( \
138
+ #define INSTANTIATE_TEST_SUITES (cls ) \
139
+ INSTANTIATE_TEST_SUITE_P ( \
140
140
Programmatic##cls, cls, \
141
141
::testing::Values (NavigationManagerChoice::LEGACY, \
142
142
NavigationManagerChoice::WK_BASED));
@@ -329,7 +329,7 @@ GURL native_url(
329
329
}
330
330
}
331
331
332
- INSTANTIATE_TEST_CASES (CRWWebControllerTest);
332
+ INSTANTIATE_TEST_SUITES (CRWWebControllerTest);
333
333
334
334
// Test fixture to test JavaScriptDialogPresenter.
335
335
class JavaScriptDialogPresenterTest : public ProgrammaticWebTestWithWebState {
@@ -421,7 +421,7 @@ void TearDown() override {
421
421
EXPECT_NSEQ (@" No" , dialog.default_prompt_text );
422
422
}
423
423
424
- INSTANTIATE_TEST_CASES (JavaScriptDialogPresenterTest);
424
+ INSTANTIATE_TEST_SUITES (JavaScriptDialogPresenterTest);
425
425
426
426
// Test fixture for testing visible security state.
427
427
typedef ProgrammaticWebTestWithWebState CRWWebStateSecurityStateTest;
@@ -439,7 +439,7 @@ void TearDown() override {
439
439
observer.did_change_visible_security_state_info ()->web_state );
440
440
}
441
441
442
- INSTANTIATE_TEST_CASES (CRWWebStateSecurityStateTest);
442
+ INSTANTIATE_TEST_SUITES (CRWWebStateSecurityStateTest);
443
443
444
444
// Real WKWebView is required for CRWWebControllerInvalidUrlTest.
445
445
typedef ProgrammaticWebTestWithWebState CRWWebControllerInvalidUrlTest;
@@ -455,7 +455,7 @@ void TearDown() override {
455
455
EXPECT_EQ (url, web_state ()->GetLastCommittedURL ());
456
456
}
457
457
458
- INSTANTIATE_TEST_CASES (CRWWebControllerInvalidUrlTest);
458
+ INSTANTIATE_TEST_SUITES (CRWWebControllerInvalidUrlTest);
459
459
460
460
// Real WKWebView is required for CRWWebControllerMessageFromIFrame.
461
461
typedef ProgrammaticWebTestWithWebState CRWWebControllerMessageFromIFrame;
@@ -473,7 +473,7 @@ void TearDown() override {
473
473
" frames['f'].__gCrWeb.message.invokeOnHost(bad_message);" );
474
474
}
475
475
476
- INSTANTIATE_TEST_CASES (CRWWebControllerMessageFromIFrame);
476
+ INSTANTIATE_TEST_SUITES (CRWWebControllerMessageFromIFrame);
477
477
478
478
// Real WKWebView is required for CRWWebControllerJSExecutionTest.
479
479
typedef ProgrammaticWebTestWithWebController CRWWebControllerJSExecutionTest;
@@ -500,7 +500,7 @@ void TearDown() override {
500
500
EXPECT_FALSE (ExecuteJavaScript (@" window.test2" ));
501
501
}
502
502
503
- INSTANTIATE_TEST_CASES (CRWWebControllerJSExecutionTest);
503
+ INSTANTIATE_TEST_SUITES (CRWWebControllerJSExecutionTest);
504
504
505
505
// Test fixture to test decidePolicyForNavigationResponse:decisionHandler:
506
506
// delegate method.
@@ -748,7 +748,7 @@ bool CallDecidePolicyForNavigationResponseWithResponse(
748
748
EXPECT_EQ (kAbsolute , trust_level);
749
749
}
750
750
751
- INSTANTIATE_TEST_CASES (CRWWebControllerResponseTest);
751
+ INSTANTIATE_TEST_SUITES (CRWWebControllerResponseTest);
752
752
753
753
// Test fixture to test decidePolicyForNavigationAction:decisionHandler:
754
754
// decisionHandler's callback result.
@@ -819,7 +819,7 @@ bool VerifyDecidePolicyForNavigationAction(
819
819
blob_url_request, WKNavigationActionPolicyAllow ));
820
820
}
821
821
822
- INSTANTIATE_TEST_CASES (CRWWebControllerPolicyDeciderTest);
822
+ INSTANTIATE_TEST_SUITES (CRWWebControllerPolicyDeciderTest);
823
823
824
824
// Test fixture for testing CRWWebController presenting native content.
825
825
class CRWWebControllerNativeContentTest
@@ -899,7 +899,7 @@ void Load(const GURL& URL) {
899
899
virtual_url);
900
900
}
901
901
902
- INSTANTIATE_TEST_CASES (CRWWebControllerNativeContentTest);
902
+ INSTANTIATE_TEST_SUITES (CRWWebControllerNativeContentTest);
903
903
904
904
// Test fixture for window.open tests.
905
905
class WindowOpenByDomTest : public ProgrammaticWebTestWithWebController {
@@ -989,7 +989,7 @@ id OpenWindowByDom() {
989
989
EXPECT_TRUE (delegate_.popups ().empty ());
990
990
}
991
991
992
- INSTANTIATE_TEST_CASES (WindowOpenByDomTest);
992
+ INSTANTIATE_TEST_SUITES (WindowOpenByDomTest);
993
993
994
994
// Tests page title changes.
995
995
typedef ProgrammaticWebTestWithWebState CRWWebControllerTitleTest;
@@ -1040,7 +1040,7 @@ id OpenWindowByDom() {
1040
1040
EXPECT_EQ (" Title1" , base::UTF16ToUTF8 (web_state ()->GetTitle ()));
1041
1041
}
1042
1042
1043
- INSTANTIATE_TEST_CASES (CRWWebControllerTitleTest);
1043
+ INSTANTIATE_TEST_SUITES (CRWWebControllerTitleTest);
1044
1044
1045
1045
// Test fixture for JavaScript execution.
1046
1046
class ScriptExecutionTest : public ProgrammaticWebTestWithWebController {
@@ -1104,7 +1104,7 @@ id ExecuteUserJavaScript(NSString* java_script, NSError** error) {
1104
1104
EXPECT_FALSE (ExecuteJavaScript (@" window.w" ));
1105
1105
};
1106
1106
1107
- INSTANTIATE_TEST_CASES (ScriptExecutionTest);
1107
+ INSTANTIATE_TEST_SUITES (ScriptExecutionTest);
1108
1108
1109
1109
// Fixture class to test WKWebView crashes.
1110
1110
class CRWWebControllerWebProcessTest
@@ -1160,8 +1160,8 @@ void SetUp() override {
1160
1160
EXPECT_TRUE (web_state ()->IsEvicted ());
1161
1161
};
1162
1162
1163
- INSTANTIATE_TEST_CASES (CRWWebControllerWebProcessTest);
1163
+ INSTANTIATE_TEST_SUITES (CRWWebControllerWebProcessTest);
1164
1164
1165
- #undef INSTANTIATE_TEST_CASES
1165
+ #undef INSTANTIATE_TEST_SUITES
1166
1166
1167
1167
} // namespace web
0 commit comments