Commit 99994b05 authored by Justin Cohen's avatar Justin Cohen Committed by Commit Bot

[ios] Don't enable real content suggestions in EG tests.

Change-Id: Idd933d2bfcff3e136c4b2787a80d70b562068ceb
Reviewed-on: https://chromium-review.googlesource.com/c/1341206
Commit-Queue: Gauthier Ambard <gambard@chromium.org>
Reviewed-by: default avatarGauthier Ambard <gambard@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609222}
parent cd0a8369
...@@ -156,11 +156,11 @@ GREYElementInteraction* CellWithMatcher(id<GREYMatcher> matcher) { ...@@ -156,11 +156,11 @@ GREYElementInteraction* CellWithMatcher(id<GREYMatcher> matcher) {
ios::ChromeBrowserState* browserState = ios::ChromeBrowserState* browserState =
chrome_test_util::GetOriginalBrowserState(); chrome_test_util::GetOriginalBrowserState();
// Resets the Service associated with this browserState to a service with // Resets the Service associated with this browserState to a new service with
// default providers. The previous service is deleted. // no providers. The previous service is deleted.
IOSChromeContentSuggestionsServiceFactory::GetInstance()->SetTestingFactory( IOSChromeContentSuggestionsServiceFactory::GetInstance()->SetTestingFactory(
browserState, browserState,
base::BindRepeating(&CreateChromeContentSuggestionsServiceWithProviders)); base::BindRepeating(&CreateChromeContentSuggestionsService));
[super tearDown]; [super tearDown];
} }
......
...@@ -118,11 +118,11 @@ std::unique_ptr<net::test_server::HttpResponse> StandardResponse( ...@@ -118,11 +118,11 @@ std::unique_ptr<net::test_server::HttpResponse> StandardResponse(
chrome_test_util::GetOriginalBrowserState(); chrome_test_util::GetOriginalBrowserState();
ReadingListModelFactory::GetForBrowserState(browserState)->DeleteAllEntries(); ReadingListModelFactory::GetForBrowserState(browserState)->DeleteAllEntries();
// Resets the Service associated with this browserState to a service with // Resets the Service associated with this browserState to a new service with
// default providers. The previous service is deleted. // no providers. The previous service is deleted.
IOSChromeContentSuggestionsServiceFactory::GetInstance()->SetTestingFactory( IOSChromeContentSuggestionsServiceFactory::GetInstance()->SetTestingFactory(
browserState, browserState,
base::BindRepeating(&CreateChromeContentSuggestionsServiceWithProviders)); base::BindRepeating(&CreateChromeContentSuggestionsService));
[super tearDown]; [super tearDown];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment