Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Unified Diff: components/sync/driver/ui_model_type_controller_unittest.cc

Issue 2306523003: [Sync] Split fake ModelTypeService impl out of SMTP tests. (Closed)
Patch Set: Rebase + fix typo in comment. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/sync/driver/non_ui_model_type_controller_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/driver/ui_model_type_controller_unittest.cc
diff --git a/components/sync/driver/ui_model_type_controller_unittest.cc b/components/sync/driver/ui_model_type_controller_unittest.cc
index 437d681dd33290d049c83fbf2bf7a8fbfde8eff3..45939ea0cdb09a4ca238d664bf4e2da38d048df6 100644
--- a/components/sync/driver/ui_model_type_controller_unittest.cc
+++ b/components/sync/driver/ui_model_type_controller_unittest.cc
@@ -15,7 +15,7 @@
#include "base/sequenced_task_runner.h"
#include "base/test/test_simple_task_runner.h"
#include "base/threading/thread.h"
-#include "components/sync/api/fake_model_type_service.h"
+#include "components/sync/api/stub_model_type_service.h"
#include "components/sync/core/activation_context.h"
#include "components/sync/core/shared_model_type_processor.h"
#include "components/sync/driver/backend_data_type_configurer.h"
@@ -144,7 +144,7 @@ class UIModelTypeControllerTest : public testing::Test,
void SetUp() override {
controller_ = new TestUIModelTypeController(
ui_loop_.task_runner(), base::Closure(), syncer::DEVICE_INFO, this);
- service_.reset(new syncer_v2::FakeModelTypeService(base::Bind(
+ service_.reset(new syncer_v2::StubModelTypeService(base::Bind(
&UIModelTypeControllerTest::CreateProcessor, base::Unretained(this))));
}
@@ -237,7 +237,7 @@ class UIModelTypeControllerTest : public testing::Test,
base::MessageLoopForUI ui_loop_;
MockSyncBackend backend_;
MockBackendDataTypeConfigurer configurer_;
- std::unique_ptr<syncer_v2::FakeModelTypeService> service_;
+ std::unique_ptr<syncer_v2::StubModelTypeService> service_;
};
TEST_F(UIModelTypeControllerTest, InitialState) {
« no previous file with comments | « components/sync/driver/non_ui_model_type_controller_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698