@@ -105,7 +105,7 @@ class DomainBlockDisabledTest : public DomainBlockTestBase {
105
105
};
106
106
107
107
IN_PROC_BROWSER_TEST_F (DomainBlockTest, ShowInterstitial) {
108
- ASSERT_TRUE (InstallDefaultAdBlockComponent ());
108
+ ASSERT_TRUE (InstallDefaultAdBlockExtension ());
109
109
GURL url = embedded_test_server ()->GetURL (" a.com" , " /simple.html" );
110
110
SetCosmeticFilteringControlType (content_settings (), ControlType::BLOCK, url);
111
111
@@ -121,7 +121,7 @@ IN_PROC_BROWSER_TEST_F(DomainBlockTest, ShowInterstitial) {
121
121
}
122
122
123
123
IN_PROC_BROWSER_TEST_F (DomainBlockTest, ShowInterstitialAndProceed) {
124
- ASSERT_TRUE (InstallDefaultAdBlockComponent ());
124
+ ASSERT_TRUE (InstallDefaultAdBlockExtension ());
125
125
GURL url = embedded_test_server ()->GetURL (" a.com" , " /simple.html" );
126
126
SetCosmeticFilteringControlType (content_settings (), ControlType::BLOCK, url);
127
127
@@ -145,7 +145,7 @@ IN_PROC_BROWSER_TEST_F(DomainBlockTest, ShowInterstitialAndProceed) {
145
145
}
146
146
147
147
IN_PROC_BROWSER_TEST_F (DomainBlockTest, ShowInterstitialAndReload) {
148
- ASSERT_TRUE (InstallDefaultAdBlockComponent ());
148
+ ASSERT_TRUE (InstallDefaultAdBlockExtension ());
149
149
GURL url = embedded_test_server ()->GetURL (" a.com" , " /simple.html" );
150
150
SetCosmeticFilteringControlType (content_settings (), ControlType::BLOCK, url);
151
151
@@ -166,7 +166,7 @@ IN_PROC_BROWSER_TEST_F(DomainBlockTest, ShowInterstitialAndReload) {
166
166
}
167
167
168
168
IN_PROC_BROWSER_TEST_F (DomainBlockTest, ProceedAndReload) {
169
- ASSERT_TRUE (InstallDefaultAdBlockComponent ());
169
+ ASSERT_TRUE (InstallDefaultAdBlockExtension ());
170
170
GURL url = embedded_test_server ()->GetURL (" a.com" , " /simple.html" );
171
171
SetCosmeticFilteringControlType (content_settings (), ControlType::BLOCK, url);
172
172
@@ -199,7 +199,7 @@ IN_PROC_BROWSER_TEST_F(DomainBlockTest, ProceedAndReload) {
199
199
}
200
200
201
201
IN_PROC_BROWSER_TEST_F (DomainBlockTest, ProceedDoesNotAffectNewTabs) {
202
- ASSERT_TRUE (InstallDefaultAdBlockComponent ());
202
+ ASSERT_TRUE (InstallDefaultAdBlockExtension ());
203
203
GURL url = embedded_test_server ()->GetURL (" a.com" , " /simple.html" );
204
204
SetCosmeticFilteringControlType (content_settings (), ControlType::BLOCK, url);
205
205
@@ -233,7 +233,7 @@ IN_PROC_BROWSER_TEST_F(DomainBlockTest, ProceedDoesNotAffectNewTabs) {
233
233
}
234
234
235
235
IN_PROC_BROWSER_TEST_F (DomainBlockTest, DontWarnAgainAndProceed) {
236
- ASSERT_TRUE (InstallDefaultAdBlockComponent ());
236
+ ASSERT_TRUE (InstallDefaultAdBlockExtension ());
237
237
GURL url = embedded_test_server ()->GetURL (" a.com" , " /simple.html" );
238
238
SetCosmeticFilteringControlType (content_settings (), ControlType::BLOCK, url);
239
239
@@ -274,7 +274,7 @@ IN_PROC_BROWSER_TEST_F(DomainBlockTest, DontWarnAgainAndProceed) {
274
274
}
275
275
276
276
IN_PROC_BROWSER_TEST_F (DomainBlockTest, ShowInterstitialAndGoBack) {
277
- ASSERT_TRUE (InstallDefaultAdBlockComponent ());
277
+ ASSERT_TRUE (InstallDefaultAdBlockExtension ());
278
278
GURL url_a = embedded_test_server ()->GetURL (" a.com" , " /simple.html" );
279
279
SetCosmeticFilteringControlType (content_settings (), ControlType::BLOCK,
280
280
url_a);
@@ -300,7 +300,7 @@ IN_PROC_BROWSER_TEST_F(DomainBlockTest, ShowInterstitialAndGoBack) {
300
300
}
301
301
302
302
IN_PROC_BROWSER_TEST_F (DomainBlockTest, NoFetch) {
303
- ASSERT_TRUE (InstallDefaultAdBlockComponent ());
303
+ ASSERT_TRUE (InstallDefaultAdBlockExtension ());
304
304
ASSERT_EQ (0 , request_count_);
305
305
GURL url = embedded_test_server ()->GetURL (" a.com" , " /simple.html" );
306
306
SetCosmeticFilteringControlType (content_settings (), ControlType::BLOCK, url);
@@ -319,7 +319,7 @@ IN_PROC_BROWSER_TEST_F(DomainBlockTest, NoFetch) {
319
319
}
320
320
321
321
IN_PROC_BROWSER_TEST_F (DomainBlockTest, NoThirdPartyInterstitial) {
322
- ASSERT_TRUE (InstallDefaultAdBlockComponent ());
322
+ ASSERT_TRUE (InstallDefaultAdBlockExtension ());
323
323
ASSERT_TRUE (g_brave_browser_process->ad_block_service ()
324
324
->custom_filters_provider ()
325
325
->UpdateCustomFilters (" ||b.com^$third-party" ));
@@ -354,7 +354,7 @@ IN_PROC_BROWSER_TEST_F(DomainBlockTest, NoThirdPartyInterstitial) {
354
354
}
355
355
356
356
IN_PROC_BROWSER_TEST_F (DomainBlockTest, NoInterstitialUnlessAggressive) {
357
- ASSERT_TRUE (InstallDefaultAdBlockComponent ());
357
+ ASSERT_TRUE (InstallDefaultAdBlockExtension ());
358
358
GURL url = embedded_test_server ()->GetURL (" a.com" , " /simple.html" );
359
359
SetCosmeticFilteringControlType (content_settings (), ControlType::BLOCK, url);
360
360
@@ -387,7 +387,7 @@ IN_PROC_BROWSER_TEST_F(DomainBlockTest, NoInterstitialUnlessAggressive) {
387
387
}
388
388
389
389
IN_PROC_BROWSER_TEST_F (DomainBlockDisabledTest, NoInterstitial) {
390
- ASSERT_TRUE (InstallDefaultAdBlockComponent ());
390
+ ASSERT_TRUE (InstallDefaultAdBlockExtension ());
391
391
GURL url = embedded_test_server ()->GetURL (" a.com" , " /simple.html" );
392
392
SetCosmeticFilteringControlType (content_settings (), ControlType::BLOCK, url);
393
393
@@ -409,7 +409,7 @@ IN_PROC_BROWSER_TEST_F(DomainBlockDisabledTest, NoInterstitial) {
409
409
}
410
410
411
411
IN_PROC_BROWSER_TEST_F (DomainBlockTest, ProceedDoesNotAffectOtherDomains) {
412
- ASSERT_TRUE (InstallDefaultAdBlockComponent ());
412
+ ASSERT_TRUE (InstallDefaultAdBlockExtension ());
413
413
GURL url_a = embedded_test_server ()->GetURL (" a.com" , " /simple.html" );
414
414
SetCosmeticFilteringControlType (content_settings (), ControlType::BLOCK,
415
415
url_a);
@@ -450,7 +450,7 @@ IN_PROC_BROWSER_TEST_F(DomainBlockTest, ProceedDoesNotAffectOtherDomains) {
450
450
451
451
IN_PROC_BROWSER_TEST_F (DomainBlockTest,
452
452
DontWarnAgainDoesNotAffectOtherDomains) {
453
- ASSERT_TRUE (InstallDefaultAdBlockComponent ());
453
+ ASSERT_TRUE (InstallDefaultAdBlockExtension ());
454
454
GURL url_a = embedded_test_server ()->GetURL (" a.com" , " /simple.html" );
455
455
SetCosmeticFilteringControlType (content_settings (), ControlType::BLOCK,
456
456
url_a);
0 commit comments