OLD | NEW |
(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 |
OLD | NEW |