| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/ref_counted.h" | 5 #include "base/ref_counted.h" |
| 6 #include "base/utf_string_conversions.h" |
| 6 #include "chrome/browser/browser.h" | 7 #include "chrome/browser/browser.h" |
| 7 #include "chrome/browser/browser_list.h" | 8 #include "chrome/browser/browser_list.h" |
| 8 #include "chrome/browser/renderer_host/render_view_host.h" | 9 #include "chrome/browser/renderer_host/render_view_host.h" |
| 9 #include "chrome/browser/extensions/autoupdate_interceptor.h" | 10 #include "chrome/browser/extensions/autoupdate_interceptor.h" |
| 10 #include "chrome/browser/extensions/extension_apitest.h" | 11 #include "chrome/browser/extensions/extension_apitest.h" |
| 11 #include "chrome/browser/extensions/extension_browsertest.h" | 12 #include "chrome/browser/extensions/extension_browsertest.h" |
| 12 #include "chrome/browser/extensions/extension_error_reporter.h" | 13 #include "chrome/browser/extensions/extension_error_reporter.h" |
| 13 #include "chrome/browser/extensions/extension_host.h" | 14 #include "chrome/browser/extensions/extension_host.h" |
| 14 #include "chrome/browser/extensions/extension_process_manager.h" | 15 #include "chrome/browser/extensions/extension_process_manager.h" |
| 15 #include "chrome/browser/extensions/extension_tabs_module.h" | 16 #include "chrome/browser/extensions/extension_tabs_module.h" |
| (...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 | 862 |
| 862 // If the options page hasn't already come up, wait for it. | 863 // If the options page hasn't already come up, wait for it. |
| 863 if (tab_strip->count() == 1) { | 864 if (tab_strip->count() == 1) { |
| 864 ui_test_utils::WaitForNewTab(browser()); | 865 ui_test_utils::WaitForNewTab(browser()); |
| 865 } | 866 } |
| 866 ASSERT_EQ(2, tab_strip->count()); | 867 ASSERT_EQ(2, tab_strip->count()); |
| 867 | 868 |
| 868 EXPECT_EQ(extension->GetResourceURL("options.html"), | 869 EXPECT_EQ(extension->GetResourceURL("options.html"), |
| 869 tab_strip->GetTabContentsAt(1)->GetURL()); | 870 tab_strip->GetTabContentsAt(1)->GetURL()); |
| 870 } | 871 } |
| OLD | NEW |