OLD | NEW |
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/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/browser/profile_sync_service_mock.h" | 20 #include "components/browser_sync/browser/profile_sync_service_mock.h" |
21 #include "components/prefs/pref_service.h" | 21 #include "components/prefs/pref_service.h" |
22 #include "components/sync_driver/device_info.h" | 22 #include "components/sync_driver/device_info.h" |
23 #include "components/sync_driver/device_info_tracker.h" | 23 #include "components/sync_driver/device_info_tracker.h" |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 .WillOnce(Return(&device_tracker)); | 254 .WillOnce(Return(&device_tracker)); |
255 EXPECT_CALL(*pss_mock, Shutdown()); | 255 EXPECT_CALL(*pss_mock, Shutdown()); |
256 | 256 |
257 ScopedVector<DeviceInfo> output = GetAllSignedInDevices( | 257 ScopedVector<DeviceInfo> output = GetAllSignedInDevices( |
258 extension()->id(), profile()); | 258 extension()->id(), profile()); |
259 | 259 |
260 EXPECT_TRUE(output.empty()); | 260 EXPECT_TRUE(output.empty()); |
261 } | 261 } |
262 | 262 |
263 } // namespace extensions | 263 } // namespace extensions |
OLD | NEW |