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

Side by Side Diff: components/sync_driver/non_ui_model_type_controller_unittest.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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/non_ui_model_type_controller.h" 5 #include "components/sync_driver/non_ui_model_type_controller.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/memory/ptr_util.h" 13 #include "base/memory/ptr_util.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "base/message_loop/message_loop.h" 16 #include "base/message_loop/message_loop.h"
17 #include "base/run_loop.h" 17 #include "base/run_loop.h"
18 #include "base/sequenced_task_runner.h" 18 #include "base/sequenced_task_runner.h"
19 #include "base/test/test_simple_task_runner.h" 19 #include "base/test/test_simple_task_runner.h"
20 #include "base/threading/thread.h" 20 #include "base/threading/thread.h"
21 #include "components/sync/api/fake_model_type_service.h"
22 #include "components/sync/core/activation_context.h"
23 #include "components/sync/core/shared_model_type_processor.h"
24 #include "components/sync/engine_impl/commit_queue.h"
21 #include "components/sync_driver/backend_data_type_configurer.h" 25 #include "components/sync_driver/backend_data_type_configurer.h"
22 #include "components/sync_driver/fake_sync_client.h" 26 #include "components/sync_driver/fake_sync_client.h"
23 #include "sync/api/fake_model_type_service.h"
24 #include "sync/engine/commit_queue.h"
25 #include "sync/internal_api/public/activation_context.h"
26 #include "sync/internal_api/public/shared_model_type_processor.h"
27 #include "testing/gtest/include/gtest/gtest.h" 27 #include "testing/gtest/include/gtest/gtest.h"
28 28
29 namespace sync_driver_v2 { 29 namespace sync_driver_v2 {
30 30
31 namespace { 31 namespace {
32 32
33 // Test controller derived from NonUIModelTypeController. 33 // Test controller derived from NonUIModelTypeController.
34 class TestNonUIModelTypeController : public NonUIModelTypeController { 34 class TestNonUIModelTypeController : public NonUIModelTypeController {
35 public: 35 public:
36 TestNonUIModelTypeController( 36 TestNonUIModelTypeController(
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 RegisterWithBackend(); 368 RegisterWithBackend();
369 ExpectProcessorConnected(true); 369 ExpectProcessorConnected(true);
370 370
371 StartAssociating(); 371 StartAssociating();
372 372
373 DeactivateDataTypeAndStop(); 373 DeactivateDataTypeAndStop();
374 EXPECT_EQ(sync_driver::DataTypeController::NOT_RUNNING, controller_->state()); 374 EXPECT_EQ(sync_driver::DataTypeController::NOT_RUNNING, controller_->state());
375 } 375 }
376 376
377 } // namespace sync_driver_v2 377 } // namespace sync_driver_v2
OLDNEW
« no previous file with comments | « components/sync_driver/non_ui_model_type_controller.cc ('k') | components/sync_driver/profile_sync_auth_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698