Commit ad5a6322 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: Ibf48e4ffe33ecf24aea08188b7579eab1de0e47b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2586012
Auto-Submit: Eugene But <eugenebut@chromium.org>
Reviewed-by: default avatarMaxim Kolosovskiy  <kolos@chromium.org>
Commit-Queue: Eugene But <eugenebut@chromium.org>
Cr-Commit-Position: refs/heads/master@{#836694}
parent 7a984805
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include "components/password_manager/ios/account_select_fill_data.h" #include "components/password_manager/ios/account_select_fill_data.h"
#include "components/password_manager/ios/test_helpers.h" #include "components/password_manager/ios/test_helpers.h"
#import "ios/web/public/test/fakes/fake_navigation_context.h" #import "ios/web/public/test/fakes/fake_navigation_context.h"
#include "ios/web/public/test/fakes/test_web_client.h" #include "ios/web/public/test/fakes/fake_web_client.h"
#import "ios/web/public/test/web_test_with_web_state.h" #import "ios/web/public/test/web_test_with_web_state.h"
#import "ios/web/public/web_state.h" #import "ios/web/public/web_state.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
...@@ -58,7 +58,7 @@ NSString* GetPageScript(NSString* script_file_name) { ...@@ -58,7 +58,7 @@ NSString* GetPageScript(NSString* script_file_name) {
return content; return content;
} }
class TestWebClientWithScript : public web::TestWebClient { class FakeWebClientWithScript : public web::FakeWebClient {
public: public:
NSString* GetDocumentStartScriptForMainFrame( NSString* GetDocumentStartScriptForMainFrame(
web::BrowserState* browser_state) const override { web::BrowserState* browser_state) const override {
...@@ -69,7 +69,7 @@ class TestWebClientWithScript : public web::TestWebClient { ...@@ -69,7 +69,7 @@ class TestWebClientWithScript : public web::TestWebClient {
class PasswordFormHelperTest : public web::WebTestWithWebState { class PasswordFormHelperTest : public web::WebTestWithWebState {
public: public:
PasswordFormHelperTest() PasswordFormHelperTest()
: web::WebTestWithWebState(std::make_unique<TestWebClientWithScript>()) {} : web::WebTestWithWebState(std::make_unique<FakeWebClientWithScript>()) {}
~PasswordFormHelperTest() override = default; ~PasswordFormHelperTest() override = default;
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include "components/password_manager/ios/test_helpers.h" #include "components/password_manager/ios/test_helpers.h"
#import "ios/web/public/test/fakes/fake_navigation_context.h" #import "ios/web/public/test/fakes/fake_navigation_context.h"
#include "ios/web/public/test/fakes/fake_web_frame.h" #include "ios/web/public/test/fakes/fake_web_frame.h"
#import "ios/web/public/test/fakes/test_web_state.h" #import "ios/web/public/test/fakes/fake_web_state.h"
#include "testing/gmock/include/gmock/gmock.h" #include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
#import "testing/gtest_mac.h" #import "testing/gtest_mac.h"
...@@ -115,7 +115,7 @@ class SharedPasswordControllerTest : public PlatformTest { ...@@ -115,7 +115,7 @@ class SharedPasswordControllerTest : public PlatformTest {
} }
protected: protected:
web::TestWebState web_state_; web::FakeWebState web_state_;
testing::StrictMock<MockPasswordManager> password_manager_; testing::StrictMock<MockPasswordManager> password_manager_;
id form_helper_; id form_helper_;
id suggestion_helper_; id suggestion_helper_;
......
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