| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/ui/panels/base_panel_browser_test.h" | 5 #include "chrome/browser/ui/panels/base_panel_browser_test.h" |
| 6 | 6 |
| 7 #include "chrome/browser/ui/browser_list.h" | 7 #include "chrome/browser/ui/browser_list.h" |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 11 #include "chrome/browser/extensions/extension_service.h" | 11 #include "chrome/browser/extensions/extension_service.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
| 14 #include "chrome/browser/ui/panels/native_panel.h" | 14 #include "chrome/browser/ui/panels/native_panel.h" |
| 15 #include "chrome/browser/ui/panels/panel_manager.h" | 15 #include "chrome/browser/ui/panels/panel_manager.h" |
| 16 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 16 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 17 #include "chrome/common/chrome_notification_types.h" |
| 17 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
| 18 #include "chrome/test/base/ui_test_utils.h" | 19 #include "chrome/test/base/ui_test_utils.h" |
| 19 #include "content/browser/tab_contents/test_tab_contents.h" | 20 #include "content/browser/tab_contents/test_tab_contents.h" |
| 20 #include "content/public/browser/notification_service.h" | 21 #include "content/public/browser/notification_service.h" |
| 21 #include "content/public/common/url_constants.h" | 22 #include "content/public/common/url_constants.h" |
| 22 | 23 |
| 23 #if defined(OS_MACOSX) | 24 #if defined(OS_MACOSX) |
| 24 #include "base/mac/scoped_nsautorelease_pool.h" | 25 #include "base/mac/scoped_nsautorelease_pool.h" |
| 25 #include "chrome/browser/ui/cocoa/find_bar/find_bar_bridge.h" | 26 #include "chrome/browser/ui/cocoa/find_bar/find_bar_bridge.h" |
| 26 #endif | 27 #endif |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 std::string error; | 326 std::string error; |
| 326 scoped_refptr<Extension> extension = Extension::Create( | 327 scoped_refptr<Extension> extension = Extension::Create( |
| 327 full_path, location, *input_value, | 328 full_path, location, *input_value, |
| 328 Extension::STRICT_ERROR_CHECKS, &error); | 329 Extension::STRICT_ERROR_CHECKS, &error); |
| 329 EXPECT_TRUE(extension.get()); | 330 EXPECT_TRUE(extension.get()); |
| 330 EXPECT_STREQ("", error.c_str()); | 331 EXPECT_STREQ("", error.c_str()); |
| 331 browser()->GetProfile()->GetExtensionService()-> | 332 browser()->GetProfile()->GetExtensionService()-> |
| 332 OnExtensionInstalled(extension.get(), false, -1); | 333 OnExtensionInstalled(extension.get(), false, -1); |
| 333 return extension; | 334 return extension; |
| 334 } | 335 } |
| OLD | NEW |