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

Unified Diff: chrome/test/live_sync/single_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/single_client_live_sessions_sync_test.cc
===================================================================
--- chrome/test/live_sync/single_client_live_sessions_sync_test.cc (revision 0)
+++ chrome/test/live_sync/single_client_live_sessions_sync_test.cc (revision 0)
@@ -0,0 +1,30 @@
+// 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/scoped_vector.h"
+#include "chrome/test/live_sync/live_sessions_sync_test.h"
+
+IN_PROC_BROWSER_TEST_F(SingleClientLiveSessionsSyncTest, Sanity) {
+ ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
+
+ ASSERT_TRUE(CheckInitialState(0));
+
+ std::vector<SessionWindow*>* old_windows =
+ InitializeNewWindowWithTab(0, GURL("about:bubba"));
+ ASSERT_TRUE(old_windows);
+
+ ASSERT_TRUE(GetClient(0)->AwaitSyncCycleCompletion(
+ "Waiting for session change."));
+
+ // Get foreign session data from client 0.
+ ScopedVector<ForeignSession> sessions;
+ ASSERT_TRUE(GetSessionData(0, &sessions.get()));
+ ASSERT_EQ(0U, sessions.size());
+
+ // Verify client didn't change.
+ std::vector<SessionWindow*>* new_windows = GetHelper(0)->ReadWindows();
+ ASSERT_TRUE(new_windows);
+ ASSERT_TRUE(WindowsMatch(*old_windows, *new_windows));
+}
+
Property changes on: chrome/test/live_sync/single_client_live_sessions_sync_test.cc
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698