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

Side by Side Diff: trunk/src/chrome/browser/sync/sessions/sessions_sync_manager_unittest.cc

Issue 398273006: Revert 284234 "Pass signin_scoped_device_id to DeviceInfoSpecifics." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
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 "chrome/browser/sync/sessions/sessions_sync_manager.h" 5 #include "chrome/browser/sync/sessions/sessions_sync_manager.h"
6 6
7 #include "base/strings/string_util.h" 7 #include "base/strings/string_util.h"
8 #include "chrome/browser/chrome_notification_types.h" 8 #include "chrome/browser/chrome_notification_types.h"
9 #include "chrome/browser/sessions/session_id.h" 9 #include "chrome/browser/sessions/session_id.h"
10 #include "chrome/browser/sessions/session_tab_helper.h" 10 #include "chrome/browser/sessions/session_tab_helper.h"
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 manager_.reset(); 248 manager_.reset();
249 BrowserWithTestWindowTest::TearDown(); 249 BrowserWithTestWindowTest::TearDown();
250 } 250 }
251 251
252 virtual scoped_ptr<DeviceInfo> GetLocalDeviceInfo() const OVERRIDE { 252 virtual scoped_ptr<DeviceInfo> GetLocalDeviceInfo() const OVERRIDE {
253 return scoped_ptr<DeviceInfo>( 253 return scoped_ptr<DeviceInfo>(
254 new DeviceInfo(GetLocalSyncCacheGUID(), 254 new DeviceInfo(GetLocalSyncCacheGUID(),
255 "Wayne Gretzky's Hacking Box", 255 "Wayne Gretzky's Hacking Box",
256 "Chromium 10k", 256 "Chromium 10k",
257 "Chrome 10k", 257 "Chrome 10k",
258 sync_pb::SyncEnums_DeviceType_TYPE_LINUX, 258 sync_pb::SyncEnums_DeviceType_TYPE_LINUX));
259 "device_id"));
260 } 259 }
261 260
262 virtual std::string GetLocalSyncCacheGUID() const OVERRIDE { 261 virtual std::string GetLocalSyncCacheGUID() const OVERRIDE {
263 return "cache_guid"; 262 return "cache_guid";
264 } 263 }
265 264
266 SessionsSyncManager* manager() { return manager_.get(); } 265 SessionsSyncManager* manager() { return manager_.get(); }
267 SessionSyncTestHelper* helper() { return &helper_; } 266 SessionSyncTestHelper* helper() { return &helper_; }
268 267
269 void InitWithSyncDataTakeOutput(const syncer::SyncDataList& initial_data, 268 void InitWithSyncDataTakeOutput(const syncer::SyncDataList& initial_data,
(...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after
1814 ASSERT_FALSE(observer.notified_of_refresh()); 1813 ASSERT_FALSE(observer.notified_of_refresh());
1815 InitWithNoSyncData(); 1814 InitWithNoSyncData();
1816 AddTab(browser(), GURL("http://foo1")); 1815 AddTab(browser(), GURL("http://foo1"));
1817 EXPECT_FALSE(observer.notified_of_refresh()); 1816 EXPECT_FALSE(observer.notified_of_refresh());
1818 NavigateAndCommitActiveTab(GURL("chrome://newtab/#open_tabs")); 1817 NavigateAndCommitActiveTab(GURL("chrome://newtab/#open_tabs"));
1819 EXPECT_TRUE(observer.notified_of_refresh()); 1818 EXPECT_TRUE(observer.notified_of_refresh());
1820 } 1819 }
1821 #endif // defined(OS_ANDROID) || defined(OS_IOS) 1820 #endif // defined(OS_ANDROID) || defined(OS_IOS)
1822 1821
1823 } // namespace browser_sync 1822 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698