| OLD | NEW |
| 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/message_loop/message_loop.h" | 6 #include "base/message_loop/message_loop.h" |
| 7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
| 8 #include "components/sync/base/get_session_name.h" |
| 8 #include "components/sync_driver/local_device_info_provider_impl.h" | 9 #include "components/sync_driver/local_device_info_provider_impl.h" |
| 9 #include "components/version_info/version_info.h" | 10 #include "components/version_info/version_info.h" |
| 10 #include "sync/util/get_session_name.h" | |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 12 |
| 13 using sync_driver::DeviceInfo; | 13 using sync_driver::DeviceInfo; |
| 14 using sync_driver::LocalDeviceInfoProvider; | 14 using sync_driver::LocalDeviceInfoProvider; |
| 15 | 15 |
| 16 namespace browser_sync { | 16 namespace browser_sync { |
| 17 | 17 |
| 18 const char kLocalDeviceGuid[] = "foo"; | 18 const char kLocalDeviceGuid[] = "foo"; |
| 19 const char kSigninScopedDeviceId[] = "device_id"; | 19 const char kSigninScopedDeviceId[] = "device_id"; |
| 20 | 20 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 EXPECT_EQ(guid2, provider_->GetLocalSyncCacheGUID()); | 137 EXPECT_EQ(guid2, provider_->GetLocalSyncCacheGUID()); |
| 138 | 138 |
| 139 FinishInitializeProvider(); | 139 FinishInitializeProvider(); |
| 140 const DeviceInfo* local_device_info = provider_->GetLocalDeviceInfo(); | 140 const DeviceInfo* local_device_info = provider_->GetLocalDeviceInfo(); |
| 141 ASSERT_NE(nullptr, local_device_info); | 141 ASSERT_NE(nullptr, local_device_info); |
| 142 EXPECT_EQ(guid2, local_device_info->guid()); | 142 EXPECT_EQ(guid2, local_device_info->guid()); |
| 143 EXPECT_EQ(guid2, provider_->GetLocalSyncCacheGUID()); | 143 EXPECT_EQ(guid2, provider_->GetLocalSyncCacheGUID()); |
| 144 } | 144 } |
| 145 | 145 |
| 146 } // namespace browser_sync | 146 } // namespace browser_sync |
| OLD | NEW |