| 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 9 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
| 10 #include "chrome/browser/devtools/devtools_window_testing.h" | 10 #include "chrome/browser/devtools/devtools_window_testing.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 IN_PROC_BROWSER_TEST_F(ViewIDTest, Tab) { | 105 IN_PROC_BROWSER_TEST_F(ViewIDTest, Tab) { |
| 106 CheckViewID(VIEW_ID_TAB_0, true); | 106 CheckViewID(VIEW_ID_TAB_0, true); |
| 107 CheckViewID(VIEW_ID_TAB_LAST, true); | 107 CheckViewID(VIEW_ID_TAB_LAST, true); |
| 108 | 108 |
| 109 // Open 9 new tabs. | 109 // Open 9 new tabs. |
| 110 for (int i = 1; i <= 9; ++i) { | 110 for (int i = 1; i <= 9; ++i) { |
| 111 CheckViewID(static_cast<ViewID>(VIEW_ID_TAB_0 + i), false); | 111 CheckViewID(static_cast<ViewID>(VIEW_ID_TAB_0 + i), false); |
| 112 browser()->OpenURL(OpenURLParams(GURL(url::kAboutBlankURL), | 112 browser()->OpenURL(OpenURLParams(GURL(url::kAboutBlankURL), |
| 113 Referrer(), | 113 Referrer(), |
| 114 NEW_BACKGROUND_TAB, | 114 NEW_BACKGROUND_TAB, |
| 115 content::PAGE_TRANSITION_TYPED, | 115 ui::PAGE_TRANSITION_TYPED, |
| 116 false)); | 116 false)); |
| 117 CheckViewID(static_cast<ViewID>(VIEW_ID_TAB_0 + i), true); | 117 CheckViewID(static_cast<ViewID>(VIEW_ID_TAB_0 + i), true); |
| 118 // VIEW_ID_TAB_LAST should always be available. | 118 // VIEW_ID_TAB_LAST should always be available. |
| 119 CheckViewID(VIEW_ID_TAB_LAST, true); | 119 CheckViewID(VIEW_ID_TAB_LAST, true); |
| 120 } | 120 } |
| 121 | 121 |
| 122 // Open the 11th tab. | 122 // Open the 11th tab. |
| 123 browser()->OpenURL(OpenURLParams(GURL(url::kAboutBlankURL), | 123 browser()->OpenURL(OpenURLParams(GURL(url::kAboutBlankURL), |
| 124 Referrer(), | 124 Referrer(), |
| 125 NEW_BACKGROUND_TAB, | 125 NEW_BACKGROUND_TAB, |
| 126 content::PAGE_TRANSITION_TYPED, | 126 ui::PAGE_TRANSITION_TYPED, |
| 127 false)); | 127 false)); |
| 128 CheckViewID(VIEW_ID_TAB_LAST, true); | 128 CheckViewID(VIEW_ID_TAB_LAST, true); |
| 129 } | 129 } |
| OLD | NEW |