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

Side by Side Diff: chrome/browser/extensions/api/signed_in_devices/signed_in_devices_api_unittest.cc

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "chrome/browser/extensions/api/signed_in_devices/signed_in_devices_api. h" 5 #include "chrome/browser/extensions/api/signed_in_devices/signed_in_devices_api. h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/guid.h" 11 #include "base/guid.h"
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "base/threading/thread_task_runner_handle.h" 13 #include "base/threading/thread_task_runner_handle.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "chrome/browser/extensions/extension_api_unittest.h" 15 #include "chrome/browser/extensions/extension_api_unittest.h"
16 #include "chrome/browser/extensions/test_extension_prefs.h" 16 #include "chrome/browser/extensions/test_extension_prefs.h"
17 #include "chrome/browser/profiles/profile.h" 17 #include "chrome/browser/profiles/profile.h"
18 #include "chrome/browser/sync/profile_sync_service_factory.h" 18 #include "chrome/browser/sync/profile_sync_service_factory.h"
19 #include "chrome/browser/sync/profile_sync_test_util.h" 19 #include "chrome/browser/sync/profile_sync_test_util.h"
20 #include "components/browser_sync/profile_sync_service_mock.h" 20 #include "components/browser_sync/profile_sync_service_mock.h"
21 #include "components/prefs/pref_service.h" 21 #include "components/prefs/pref_service.h"
22 #include "components/sync/device_info/device_info.h" 22 #include "components/sync/device_info/device_info.h"
23 #include "components/sync/device_info/device_info_tracker.h" 23 #include "components/sync/device_info/device_info_tracker.h"
24 #include "content/public/test/test_browser_thread_bundle.h" 24 #include "content/public/test/test_browser_thread_bundle.h"
25 #include "extensions/common/extension.h" 25 #include "extensions/common/extension.h"
26 #include "testing/gmock/include/gmock/gmock.h" 26 #include "testing/gmock/include/gmock/gmock.h"
27 #include "testing/gtest/include/gtest/gtest.h" 27 #include "testing/gtest/include/gtest/gtest.h"
28 28
29 using syncer::DeviceInfo; 29 using sync_driver::DeviceInfo;
30 using syncer::DeviceInfoTracker; 30 using sync_driver::DeviceInfoTracker;
31 using testing::Return; 31 using testing::Return;
32 32
33 namespace extensions { 33 namespace extensions {
34 34
35 class MockDeviceInfoTracker : public DeviceInfoTracker { 35 class MockDeviceInfoTracker : public DeviceInfoTracker {
36 public: 36 public:
37 ~MockDeviceInfoTracker() override {} 37 ~MockDeviceInfoTracker() override {}
38 38
39 bool IsSyncing() const override { return !devices_.empty(); } 39 bool IsSyncing() const override { return !devices_.empty(); }
40 40
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 .WillOnce(Return(&device_tracker)); 250 .WillOnce(Return(&device_tracker));
251 EXPECT_CALL(*pss_mock, Shutdown()); 251 EXPECT_CALL(*pss_mock, Shutdown());
252 252
253 std::vector<std::unique_ptr<DeviceInfo>> output = 253 std::vector<std::unique_ptr<DeviceInfo>> output =
254 GetAllSignedInDevices(extension()->id(), profile()); 254 GetAllSignedInDevices(extension()->id(), profile());
255 255
256 EXPECT_TRUE(output.empty()); 256 EXPECT_TRUE(output.empty());
257 } 257 }
258 258
259 } // namespace extensions 259 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698