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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/live_sync/multiple_client_live_sessions_sync_test.cc
===================================================================
--- chrome/test/live_sync/multiple_client_live_sessions_sync_test.cc (revision 0)
+++ chrome/test/live_sync/multiple_client_live_sessions_sync_test.cc (revision 0)
@@ -0,0 +1,33 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/stringprintf.h"
+#include "chrome/test/live_sync/live_sessions_sync_test.h"
+
+IN_PROC_BROWSER_TEST_F(MultipleClientLiveSessionsSyncTest, AllChanged) {
+ ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
+ std::vector<std::vector<SessionWindow*>* > client_windows;
+
+ for (int i = 0; i < num_clients(); ++i) {
+ ASSERT_TRUE(CheckInitialState(i));
+ }
+
+ // Open tabs on all clients and retain window information.
+ for (int i = 0; i < num_clients(); ++i) {
+ std::vector<SessionWindow*>* new_windows =
+ InitializeNewWindowWithTab(i, GURL(StringPrintf("about:bubba%i", i)));
+ ASSERT_TRUE(new_windows);
+ client_windows.push_back(new_windows);
+ }
+
+ // Wait for sync.
+ ASSERT_TRUE(AwaitQuiescence());
+
+ // Get foreign session data from all clients and check it against all
+ // client_windows.
+ for (int i = 0; i < num_clients(); ++i) {
+ ASSERT_TRUE(CheckForeignSessionsAgainst(i, client_windows));
+ }
+}
+
Property changes on: chrome/test/live_sync/multiple_client_live_sessions_sync_test.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« 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