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

Side by Side Diff: components/sync_driver/non_blocking_data_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_blocking_data_type_controller.h" 5 #include "components/sync_driver/non_blocking_data_type_controller.h"
6 6
7 #include <memory> 7 #include <memory>
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/location.h" 11 #include "base/location.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
15 #include "base/run_loop.h" 15 #include "base/run_loop.h"
16 #include "components/sync/api/fake_model_type_change_processor.h"
17 #include "components/sync/api/fake_model_type_service.h"
18 #include "components/sync/base/model_type.h"
16 #include "components/sync_driver/fake_sync_client.h" 19 #include "components/sync_driver/fake_sync_client.h"
17 #include "components/sync_driver/sync_prefs.h" 20 #include "components/sync_driver/sync_prefs.h"
18 #include "sync/api/fake_model_type_change_processor.h"
19 #include "sync/api/fake_model_type_service.h"
20 #include "sync/internal_api/public/base/model_type.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 22
23 namespace sync_driver { 23 namespace sync_driver {
24 class SyncClient; 24 class SyncClient;
25 } // namespace sync_driver 25 } // namespace sync_driver
26 26
27 namespace sync_driver_v2 { 27 namespace sync_driver_v2 {
28 28
29 namespace { 29 namespace {
30 30
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 controller_->Stop(); 205 controller_->Stop();
206 PumpLoop(); 206 PumpLoop();
207 EXPECT_EQ(sync_driver::DataTypeController::NOT_RUNNING, controller_->state()); 207 EXPECT_EQ(sync_driver::DataTypeController::NOT_RUNNING, controller_->state());
208 // Ensure that DisableSync is not called. 208 // Ensure that DisableSync is not called.
209 EXPECT_EQ(0, disable_sync_call_count_); 209 EXPECT_EQ(0, disable_sync_call_count_);
210 } 210 }
211 211
212 } // namespace 212 } // namespace
213 213
214 } // namespace sync_driver_v2 214 } // namespace sync_driver_v2
OLDNEW
« no previous file with comments | « components/sync_driver/non_blocking_data_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