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

Side by Side Diff: chrome/browser/sync/test/live_sync/single_client_sessions_sync_test.cc

Issue 7828055: Move sync test code out of chrome/test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/memory/scoped_vector.h" 5 #include "base/memory/scoped_vector.h"
6 #include "chrome/browser/sessions/session_service.h" 6 #include "chrome/browser/sessions/session_service.h"
7 #include "chrome/browser/sync/profile_sync_service_harness.h" 7 #include "chrome/browser/sync/profile_sync_service_harness.h"
8 #include "chrome/test/live_sync/live_sync_test.h" 8 #include "chrome/browser/sync/test/live_sync/live_sync_test.h"
9 #include "chrome/test/live_sync/sessions_helper.h" 9 #include "chrome/browser/sync/test/live_sync/sessions_helper.h"
10 10
11 using sessions_helper::CheckInitialState; 11 using sessions_helper::CheckInitialState;
12 using sessions_helper::GetLocalWindows; 12 using sessions_helper::GetLocalWindows;
13 using sessions_helper::GetSessionData; 13 using sessions_helper::GetSessionData;
14 using sessions_helper::OpenTabAndGetLocalWindows; 14 using sessions_helper::OpenTabAndGetLocalWindows;
15 using sessions_helper::WindowsMatch; 15 using sessions_helper::WindowsMatch;
16 16
17 class SingleClientSessionsSyncTest : public LiveSyncTest { 17 class SingleClientSessionsSyncTest : public LiveSyncTest {
18 public: 18 public:
19 SingleClientSessionsSyncTest() : LiveSyncTest(SINGLE_CLIENT) {} 19 SingleClientSessionsSyncTest() : LiveSyncTest(SINGLE_CLIENT) {}
(...skipping 19 matching lines...) Expand all
39 // Get foreign session data from client 0. 39 // Get foreign session data from client 0.
40 SyncedSessionVector sessions; 40 SyncedSessionVector sessions;
41 ASSERT_FALSE(GetSessionData(0, &sessions)); 41 ASSERT_FALSE(GetSessionData(0, &sessions));
42 ASSERT_EQ(0U, sessions.size()); 42 ASSERT_EQ(0U, sessions.size());
43 43
44 // Verify client didn't change. 44 // Verify client didn't change.
45 ScopedVector<SessionWindow> new_windows; 45 ScopedVector<SessionWindow> new_windows;
46 ASSERT_TRUE(GetLocalWindows(0, new_windows.get())); 46 ASSERT_TRUE(GetLocalWindows(0, new_windows.get()));
47 ASSERT_TRUE(WindowsMatch(old_windows.get(), new_windows.get())); 47 ASSERT_TRUE(WindowsMatch(old_windows.get(), new_windows.get()));
48 } 48 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698