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/local_device_info_provider_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
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 "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
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
OLDNEW
« no previous file with comments | « components/sync_driver/local_device_info_provider_impl.cc ('k') | components/sync_driver/model_association_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698