| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "base/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
| 7 #include "base/time.h" | |
| 8 #include "chrome/app/chrome_dll_resource.h" | 7 #include "chrome/app/chrome_dll_resource.h" |
| 9 #include "chrome/browser/view_ids.h" | 8 #include "chrome/browser/view_ids.h" |
| 10 #include "chrome/common/chrome_paths.h" | 9 #include "chrome/common/chrome_paths.h" |
| 11 #include "chrome/common/chrome_switches.h" | 10 #include "chrome/common/chrome_switches.h" |
| 12 #include "chrome/common/pref_names.h" | 11 #include "chrome/common/pref_names.h" |
| 13 #include "chrome/test/automation/tab_proxy.h" | 12 #include "chrome/test/automation/tab_proxy.h" |
| 14 #include "chrome/test/automation/browser_proxy.h" | 13 #include "chrome/test/automation/browser_proxy.h" |
| 15 #include "chrome/test/automation/window_proxy.h" | 14 #include "chrome/test/automation/window_proxy.h" |
| 16 #include "chrome/test/ui/ui_test.h" | 15 #include "chrome/test/ui/ui_test.h" |
| 17 #include "chrome/views/event.h" | 16 #include "chrome/views/event.h" |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 scoped_ptr<TabProxy> tab1_2(browser2->GetTab(0)); | 491 scoped_ptr<TabProxy> tab1_2(browser2->GetTab(0)); |
| 493 ASSERT_TRUE(tab1_2.get()); | 492 ASSERT_TRUE(tab1_2.get()); |
| 494 GURL tab1_2_url; | 493 GURL tab1_2_url; |
| 495 ASSERT_TRUE(tab1_2->GetCurrentURL(&tab1_2_url)); | 494 ASSERT_TRUE(tab1_2->GetCurrentURL(&tab1_2_url)); |
| 496 | 495 |
| 497 // Tab_1_2 of Window 2 should essentially be Tab_2 of Window 1. | 496 // Tab_1_2 of Window 2 should essentially be Tab_2 of Window 1. |
| 498 EXPECT_EQ(tab1_2_url.spec(), tab2_url.spec()); | 497 EXPECT_EQ(tab1_2_url.spec(), tab2_url.spec()); |
| 499 EXPECT_NE(tab1_2_url.spec(), tab1_url.spec()); | 498 EXPECT_NE(tab1_2_url.spec(), tab1_url.spec()); |
| 500 EXPECT_NE(tab1_2_url.spec(), tab3_url.spec()); | 499 EXPECT_NE(tab1_2_url.spec(), tab3_url.spec()); |
| 501 } | 500 } |
| OLD | NEW |