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

Side by Side Diff: chrome/browser/sync/test/integration/two_client_sessions_sync_test.cc

Issue 2753753005: [sync] WebContentsObserver based sessions notifications (Closed)
Patch Set: use base:MakeUnique, alphabetize Created 3 years, 9 months 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <string> 5 #include <string>
6 6
7 #include "base/guid.h" 7 #include "base/guid.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 205
206 ASSERT_TRUE(CheckInitialState(0)); 206 ASSERT_TRUE(CheckInitialState(0));
207 ASSERT_TRUE(CheckInitialState(1)); 207 ASSERT_TRUE(CheckInitialState(1));
208 208
209 EXPECT_TRUE(OpenTab(0, GURL(kURL1))); 209 EXPECT_TRUE(OpenTab(0, GURL(kURL1)));
210 EXPECT_TRUE(OpenTabAtIndex(0, 1, GURL(kURL2))); 210 EXPECT_TRUE(OpenTabAtIndex(0, 1, GURL(kURL2)));
211 211
212 // Add a second browser for profile 0. This browser ends up in index 2. 212 // Add a second browser for profile 0. This browser ends up in index 2.
213 AddBrowser(0); 213 AddBrowser(0);
214 EXPECT_TRUE(OpenTab(2, GURL(kURL3))); 214 EXPECT_TRUE(OpenTab(2, GURL(kURL3)));
215 EXPECT_TRUE(OpenTabAtIndex(2, 2, GURL(kURL4))); 215 EXPECT_TRUE(OpenTabAtIndex(2, 1, GURL(kURL4)));
216 216
217 WaitForForeignSessionsToSync(0, 1); 217 WaitForForeignSessionsToSync(0, 1);
218 } 218 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698