| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |