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

Side by Side Diff: components/sync/driver/model_type_controller_unittest.cc

Issue 2413313004: [Sync] Move the last things out of core/. (Closed)
Patch Set: Address comments. Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « components/sync/driver/model_type_controller.cc ('k') | components/sync/driver/sync_frontend.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/sync/driver/model_type_controller.h" 5 #include "components/sync/driver/model_type_controller.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/message_loop/message_loop.h" 15 #include "base/message_loop/message_loop.h"
16 #include "base/run_loop.h" 16 #include "base/run_loop.h"
17 #include "base/sequenced_task_runner.h" 17 #include "base/sequenced_task_runner.h"
18 #include "base/test/test_simple_task_runner.h" 18 #include "base/test/test_simple_task_runner.h"
19 #include "base/threading/thread.h" 19 #include "base/threading/thread.h"
20 #include "base/threading/thread_task_runner_handle.h" 20 #include "base/threading/thread_task_runner_handle.h"
21 #include "components/sync/core/activation_context.h"
22 #include "components/sync/core/model_type_processor_proxy.h"
23 #include "components/sync/core/test/fake_model_type_processor.h"
24 #include "components/sync/driver/backend_data_type_configurer.h" 21 #include "components/sync/driver/backend_data_type_configurer.h"
25 #include "components/sync/driver/fake_sync_client.h" 22 #include "components/sync/driver/fake_sync_client.h"
23 #include "components/sync/engine/activation_context.h"
26 #include "components/sync/engine/commit_queue.h" 24 #include "components/sync/engine/commit_queue.h"
25 #include "components/sync/engine/fake_model_type_processor.h"
26 #include "components/sync/engine/model_type_processor_proxy.h"
27 #include "components/sync/model/fake_model_type_change_processor.h" 27 #include "components/sync/model/fake_model_type_change_processor.h"
28 #include "components/sync/model/stub_model_type_service.h" 28 #include "components/sync/model/stub_model_type_service.h"
29 #include "testing/gtest/include/gtest/gtest.h" 29 #include "testing/gtest/include/gtest/gtest.h"
30 30
31 namespace syncer { 31 namespace syncer {
32 32
33 namespace { 33 namespace {
34 34
35 const ModelType kTestModelType = AUTOFILL; 35 const ModelType kTestModelType = AUTOFILL;
36 36
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 372
373 // Clearing preferences emulates signing out. 373 // Clearing preferences emulates signing out.
374 sync_prefs()->ClearPreferences(); 374 sync_prefs()->ClearPreferences();
375 controller()->Stop(); 375 controller()->Stop();
376 EXPECT_EQ(DataTypeController::NOT_RUNNING, controller()->state()); 376 EXPECT_EQ(DataTypeController::NOT_RUNNING, controller()->state());
377 // Ensure that DisableSync is not called. 377 // Ensure that DisableSync is not called.
378 EXPECT_EQ(0, disable_sync_call_count()); 378 EXPECT_EQ(0, disable_sync_call_count());
379 } 379 }
380 380
381 } // namespace syncer 381 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/driver/model_type_controller.cc ('k') | components/sync/driver/sync_frontend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698