Commit b781a6ab authored by Eugene But's avatar Eugene But Committed by Chromium LUCI CQ

[ios] Use Fake term for ios/web/test/fake names

Bug: 688063
Change-Id: I4cef9ed86a096fe6035ef5a11b4eb02b29c047bb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2585679
Auto-Submit: Eugene But <eugenebut@chromium.org>
Commit-Queue: Nohemi Fernandez <fernandex@chromium.org>
Reviewed-by: default avatarNohemi Fernandez <fernandex@chromium.org>
Cr-Commit-Position: refs/heads/master@{#836051}
parent d7a6dc71
...@@ -30,8 +30,8 @@ ...@@ -30,8 +30,8 @@
#include "components/signin/public/identity_manager/test_identity_manager_observer.h" #include "components/signin/public/identity_manager/test_identity_manager_observer.h"
#include "components/sync_preferences/testing_pref_service_syncable.h" #include "components/sync_preferences/testing_pref_service_syncable.h"
#include "ios/web/public/navigation/web_state_policy_decider.h" #include "ios/web/public/navigation/web_state_policy_decider.h"
#include "ios/web/public/test/fakes/test_browser_state.h" #include "ios/web/public/test/fakes/fake_browser_state.h"
#import "ios/web/public/test/fakes/test_web_state.h" #import "ios/web/public/test/fakes/fake_web_state.h"
#include "ios/web/public/test/web_task_environment.h" #include "ios/web/public/test/web_task_environment.h"
#include "net/base/mac/url_conversions.h" #include "net/base/mac/url_conversions.h"
#include "net/cookies/cookie_util.h" #include "net/cookies/cookie_util.h"
...@@ -95,10 +95,10 @@ class MockAccountReconcilor : public AccountReconcilor { ...@@ -95,10 +95,10 @@ class MockAccountReconcilor : public AccountReconcilor {
MOCK_METHOD1(OnReceivedManageAccountsResponse, void(signin::GAIAServiceType)); MOCK_METHOD1(OnReceivedManageAccountsResponse, void(signin::GAIAServiceType));
}; };
// TestWebState that allows control over its policy decider. // FakeWebState that allows control over its policy decider.
class TestWebState : public web::TestWebState { class FakeWebState : public web::FakeWebState {
public: public:
TestWebState() : web::TestWebState(), decider_(nullptr) {} FakeWebState() : web::FakeWebState(), decider_(nullptr) {}
void AddPolicyDecider(web::WebStatePolicyDecider* decider) override { void AddPolicyDecider(web::WebStatePolicyDecider* decider) override {
EXPECT_FALSE(decider_); EXPECT_FALSE(decider_);
decider_ = decider; decider_ = decider;
...@@ -289,9 +289,9 @@ class AccountConsistencyServiceTest : public PlatformTest { ...@@ -289,9 +289,9 @@ class AccountConsistencyServiceTest : public PlatformTest {
// Creates test threads, necessary for ActiveStateManager that needs a UI // Creates test threads, necessary for ActiveStateManager that needs a UI
// thread. // thread.
web::WebTaskEnvironment task_environment_; web::WebTaskEnvironment task_environment_;
web::TestBrowserState browser_state_; web::FakeBrowserState browser_state_;
sync_preferences::TestingPrefServiceSyncable prefs_; sync_preferences::TestingPrefServiceSyncable prefs_;
TestWebState web_state_; FakeWebState web_state_;
network::TestURLLoaderFactory test_url_loader_factory_; network::TestURLLoaderFactory test_url_loader_factory_;
std::unique_ptr<signin::IdentityTestEnvironment> identity_test_env_; std::unique_ptr<signin::IdentityTestEnvironment> identity_test_env_;
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
#include "components/signin/ios/browser/active_state_manager.h" #include "components/signin/ios/browser/active_state_manager.h"
#include "ios/web/public/browser_state.h" #include "ios/web/public/browser_state.h"
#include "ios/web/public/test/fakes/test_browser_state.h"
#include "ios/web/public/test/web_task_environment.h" #include "ios/web/public/test/web_task_environment.h"
#include "ios/web/public/test/web_test.h" #include "ios/web/public/test/web_test.h"
#include "testing/gmock/include/gmock/gmock.h" #include "testing/gmock/include/gmock/gmock.h"
......
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