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

Side by Side Diff: chrome/test/live_sync/multiple_client_live_sessions_sync_test.cc

Issue 4158009: Session sync integration tests. Left out many client for now, since even... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/stringprintf.h"
6 #include "chrome/test/live_sync/live_sessions_sync_test.h"
7
8 IN_PROC_BROWSER_TEST_F(MultipleClientLiveSessionsSyncTest, AllChanged) {
9 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
10 std::vector<std::vector<SessionWindow*>* > client_windows;
11
12 for (int i = 0; i < num_clients(); ++i) {
13 ASSERT_TRUE(CheckInitialState(i));
14 }
15
16 // Open tabs on all clients and retain window information.
17 for (int i = 0; i < num_clients(); ++i) {
18 std::vector<SessionWindow*>* new_windows =
19 InitializeNewWindowWithTab(i, GURL(StringPrintf("about:bubba%i", i)));
20 ASSERT_TRUE(new_windows);
21 client_windows.push_back(new_windows);
22 }
23
24 // Wait for sync.
25 ASSERT_TRUE(AwaitQuiescence());
26
27 // Get foreign session data from all clients and check it against all
28 // client_windows.
29 for (int i = 0; i < num_clients(); ++i) {
30 ASSERT_TRUE(CheckForeignSessionsAgainst(i, client_windows));
31 }
32 }
33
OLDNEW
« no previous file with comments | « chrome/test/live_sync/live_sync_test.cc ('k') | chrome/test/live_sync/single_client_live_sessions_sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698