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 |