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

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

Issue 2388973002: [Sync] Removing duplicate includes, part 2. (Closed)
Patch Set: Update for Max's 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
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>
8 #include <utility> 7 #include <utility>
9 8
10 #include "base/bind.h" 9 #include "base/bind.h"
11 #include "base/callback.h" 10 #include "base/callback.h"
12 #include "base/location.h" 11 #include "base/location.h"
13 #include "base/logging.h" 12 #include "base/logging.h"
14 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
15 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
16 #include "base/run_loop.h" 15 #include "base/run_loop.h"
17 #include "base/threading/thread_task_runner_handle.h" 16 #include "base/threading/thread_task_runner_handle.h"
18 #include "components/sync/api/fake_model_type_change_processor.h" 17 #include "components/sync/api/fake_model_type_change_processor.h"
19 #include "components/sync/api/stub_model_type_service.h" 18 #include "components/sync/api/stub_model_type_service.h"
20 #include "components/sync/base/model_type.h"
21 #include "components/sync/driver/fake_sync_client.h" 19 #include "components/sync/driver/fake_sync_client.h"
22 #include "components/sync/driver/sync_prefs.h"
23 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
24 21
25 namespace syncer { 22 namespace syncer {
26 class SyncClient; 23 class SyncClient;
27 } // namespace syncer 24 } // namespace syncer
28 25
29 namespace syncer { 26 namespace syncer {
30 27
31 namespace { 28 namespace {
32 29
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 controller_.Stop(); 187 controller_.Stop();
191 PumpLoop(); 188 PumpLoop();
192 EXPECT_EQ(DataTypeController::NOT_RUNNING, controller_.state()); 189 EXPECT_EQ(DataTypeController::NOT_RUNNING, controller_.state());
193 // Ensure that DisableSync is not called. 190 // Ensure that DisableSync is not called.
194 EXPECT_EQ(0, disable_sync_call_count_); 191 EXPECT_EQ(0, disable_sync_call_count_);
195 } 192 }
196 193
197 } // namespace 194 } // namespace
198 195
199 } // namespace syncer 196 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698