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

Side by Side Diff: components/sync_driver/device_info_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
« no previous file with comments | « components/sync_driver/device_info.h ('k') | components/sync_driver/device_info_service.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/device_info_data_type_controller.h" 5 #include "components/sync_driver/device_info_data_type_controller.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "base/threading/thread_task_runner_handle.h" 11 #include "base/threading/thread_task_runner_handle.h"
12 #include "components/sync/base/model_type.h"
12 #include "components/sync_driver/fake_sync_client.h" 13 #include "components/sync_driver/fake_sync_client.h"
13 #include "components/sync_driver/local_device_info_provider_mock.h" 14 #include "components/sync_driver/local_device_info_provider_mock.h"
14 #include "components/sync_driver/sync_api_component_factory.h" 15 #include "components/sync_driver/sync_api_component_factory.h"
15 #include "sync/internal_api/public/base/model_type.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 namespace sync_driver { 18 namespace sync_driver {
19 19
20 namespace { 20 namespace {
21 21
22 class DeviceInfoDataTypeControllerTest : public testing::Test { 22 class DeviceInfoDataTypeControllerTest : public testing::Test {
23 public: 23 public:
24 DeviceInfoDataTypeControllerTest() 24 DeviceInfoDataTypeControllerTest()
25 : load_finished_(false), 25 : load_finished_(false),
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 controller_->Stop(); 121 controller_->Stop();
122 // Destroy |local_device_| and |controller_| out of order 122 // Destroy |local_device_| and |controller_| out of order
123 // to verify that the controller doesn't crash in the destructor. 123 // to verify that the controller doesn't crash in the destructor.
124 local_device_.reset(); 124 local_device_.reset();
125 controller_ = NULL; 125 controller_ = NULL;
126 } 126 }
127 127
128 } // namespace 128 } // namespace
129 129
130 } // namespace sync_driver 130 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync_driver/device_info.h ('k') | components/sync_driver/device_info_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698