| 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/guid.h" | 9 #include "base/guid.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/prefs/pref_service.h" | 11 #include "base/prefs/pref_service.h" |
| 12 #include "base/thread_task_runner_handle.h" | 12 #include "base/thread_task_runner_handle.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "chrome/browser/extensions/api/signed_in_devices/signed_in_devices_api.
h" | 14 #include "chrome/browser/extensions/api/signed_in_devices/signed_in_devices_api.
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_service_mock.h" | |
| 20 #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" |
| 21 #include "components/sync_driver/device_info.h" | 21 #include "components/sync_driver/device_info.h" |
| 22 #include "content/public/test/test_browser_thread_bundle.h" | 22 #include "content/public/test/test_browser_thread_bundle.h" |
| 23 #include "extensions/common/extension.h" | 23 #include "extensions/common/extension.h" |
| 24 #include "testing/gmock/include/gmock/gmock.h" | 24 #include "testing/gmock/include/gmock/gmock.h" |
| 25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
| 26 | 26 |
| 27 using sync_driver::DeviceInfo; | 27 using sync_driver::DeviceInfo; |
| 28 using sync_driver::DeviceInfoTracker; | 28 using sync_driver::DeviceInfoTracker; |
| 29 using testing::Return; | 29 using testing::Return; |
| 30 | 30 |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 .WillOnce(Return(&device_tracker)); | 247 .WillOnce(Return(&device_tracker)); |
| 248 EXPECT_CALL(*pss_mock, Shutdown()); | 248 EXPECT_CALL(*pss_mock, Shutdown()); |
| 249 | 249 |
| 250 ScopedVector<DeviceInfo> output = GetAllSignedInDevices( | 250 ScopedVector<DeviceInfo> output = GetAllSignedInDevices( |
| 251 extension()->id(), profile()); | 251 extension()->id(), profile()); |
| 252 | 252 |
| 253 EXPECT_TRUE(output.empty()); | 253 EXPECT_TRUE(output.empty()); |
| 254 } | 254 } |
| 255 | 255 |
| 256 } // namespace extensions | 256 } // namespace extensions |
| OLD | NEW |