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

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

Issue 2401223002: [Sync] Renaming sync/api* to sync/model*. (Closed)
Patch Set: Missed a comment in a DEPS file, and rebasing. 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
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/api/fake_model_type_change_processor.h"
22 #include "components/sync/api/stub_model_type_service.h"
23 #include "components/sync/core/activation_context.h" 21 #include "components/sync/core/activation_context.h"
24 #include "components/sync/core/model_type_processor_proxy.h" 22 #include "components/sync/core/model_type_processor_proxy.h"
25 #include "components/sync/core/shared_model_type_processor.h" 23 #include "components/sync/core/shared_model_type_processor.h"
26 #include "components/sync/core/test/fake_model_type_processor.h" 24 #include "components/sync/core/test/fake_model_type_processor.h"
27 #include "components/sync/driver/backend_data_type_configurer.h" 25 #include "components/sync/driver/backend_data_type_configurer.h"
28 #include "components/sync/driver/fake_sync_client.h" 26 #include "components/sync/driver/fake_sync_client.h"
29 #include "components/sync/engine/commit_queue.h" 27 #include "components/sync/engine/commit_queue.h"
28 #include "components/sync/model/fake_model_type_change_processor.h"
29 #include "components/sync/model/stub_model_type_service.h"
30 #include "testing/gtest/include/gtest/gtest.h" 30 #include "testing/gtest/include/gtest/gtest.h"
31 31
32 namespace syncer { 32 namespace syncer {
33 33
34 namespace { 34 namespace {
35 35
36 const ModelType kTestModelType = AUTOFILL; 36 const ModelType kTestModelType = AUTOFILL;
37 37
38 // A change processor for testing that connects using a thread-jumping proxy, 38 // A change processor for testing that connects using a thread-jumping proxy,
39 // tracks connected state, and counts DisableSync calls. 39 // tracks connected state, and counts DisableSync calls.
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 sync_prefs()->ClearPreferences(); 392 sync_prefs()->ClearPreferences();
393 controller()->Stop(); 393 controller()->Stop();
394 EXPECT_EQ(DataTypeController::NOT_RUNNING, controller()->state()); 394 EXPECT_EQ(DataTypeController::NOT_RUNNING, controller()->state());
395 // Ensure that DisableSync is not called. 395 // Ensure that DisableSync is not called.
396 EXPECT_EQ(0, disable_sync_call_count()); 396 EXPECT_EQ(0, disable_sync_call_count());
397 // A change processor was never created. 397 // A change processor was never created.
398 ExpectHasChangeProcessor(false); 398 ExpectHasChangeProcessor(false);
399 } 399 }
400 400
401 } // namespace syncer 401 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/driver/model_type_controller.cc ('k') | components/sync/driver/non_ui_data_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698