| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/path_service.h" | 5 #include "base/path_service.h" |
| 6 #include "base/strings/stringprintf.h" | 6 #include "base/strings/stringprintf.h" |
| 7 #include "components/guest_view/browser/guest_view_manager.h" |
| 8 #include "components/guest_view/browser/guest_view_manager_factory.h" |
| 9 #include "components/guest_view/browser/test_guest_view_manager.h" |
| 7 #include "content/public/test/browser_test.h" | 10 #include "content/public/test/browser_test.h" |
| 8 #include "content/public/test/browser_test_utils.h" | 11 #include "content/public/test/browser_test_utils.h" |
| 9 #include "content/public/test/test_utils.h" | 12 #include "content/public/test/test_utils.h" |
| 10 #include "extensions/browser/app_window/app_window.h" | 13 #include "extensions/browser/app_window/app_window.h" |
| 11 #include "extensions/browser/app_window/app_window_registry.h" | 14 #include "extensions/browser/app_window/app_window_registry.h" |
| 12 #include "extensions/browser/guest_view/guest_view_manager.h" | |
| 13 #include "extensions/browser/guest_view/guest_view_manager_factory.h" | |
| 14 #include "extensions/browser/guest_view/test_guest_view_manager.h" | |
| 15 #include "extensions/common/extension.h" | 15 #include "extensions/common/extension.h" |
| 16 #include "extensions/common/extension_paths.h" | 16 #include "extensions/common/extension_paths.h" |
| 17 #include "extensions/shell/browser/shell_app_delegate.h" | 17 #include "extensions/shell/browser/shell_app_delegate.h" |
| 18 #include "extensions/shell/browser/shell_app_view_guest_delegate.h" | 18 #include "extensions/shell/browser/shell_app_view_guest_delegate.h" |
| 19 #include "extensions/shell/browser/shell_content_browser_client.h" | 19 #include "extensions/shell/browser/shell_content_browser_client.h" |
| 20 #include "extensions/shell/browser/shell_extension_system.h" | 20 #include "extensions/shell/browser/shell_extension_system.h" |
| 21 #include "extensions/shell/browser/shell_extensions_api_client.h" | 21 #include "extensions/shell/browser/shell_extensions_api_client.h" |
| 22 #include "extensions/shell/browser/shell_extensions_browser_client.h" | 22 #include "extensions/shell/browser/shell_extensions_browser_client.h" |
| 23 #include "extensions/shell/test/shell_test.h" | 23 #include "extensions/shell/test/shell_test.h" |
| 24 #include "extensions/test/extension_test_message_listener.h" | 24 #include "extensions/test/extension_test_message_listener.h" |
| 25 #include "net/base/filename_util.h" | 25 #include "net/base/filename_util.h" |
| 26 | 26 |
| 27 using guestview::GuestViewManager; |
| 28 using guestview::TestGuestViewManager; |
| 29 using guestview::TestGuestViewManagerFactory; |
| 30 |
| 27 namespace { | 31 namespace { |
| 28 | 32 |
| 29 class MockShellAppDelegate : public extensions::ShellAppDelegate { | 33 class MockShellAppDelegate : public extensions::ShellAppDelegate { |
| 30 public: | 34 public: |
| 31 MockShellAppDelegate() : requested_(false) { | 35 MockShellAppDelegate() : requested_(false) { |
| 32 DCHECK(instance_ == nullptr); | 36 DCHECK(instance_ == nullptr); |
| 33 instance_ = this; | 37 instance_ = this; |
| 34 } | 38 } |
| 35 ~MockShellAppDelegate() override { instance_ = nullptr; } | 39 ~MockShellAppDelegate() override { instance_ = nullptr; } |
| 36 | 40 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 } | 176 } |
| 173 | 177 |
| 174 // Tests that <appview> is able to navigate to another installed app. | 178 // Tests that <appview> is able to navigate to another installed app. |
| 175 IN_PROC_BROWSER_TEST_F(AppViewTest, TestAppViewWithUndefinedDataShouldSucceed) { | 179 IN_PROC_BROWSER_TEST_F(AppViewTest, TestAppViewWithUndefinedDataShouldSucceed) { |
| 176 RunTest("testAppViewWithUndefinedDataShouldSucceed", | 180 RunTest("testAppViewWithUndefinedDataShouldSucceed", |
| 177 "app_view/apitest", | 181 "app_view/apitest", |
| 178 "app_view/apitest/skeleton"); | 182 "app_view/apitest/skeleton"); |
| 179 } | 183 } |
| 180 | 184 |
| 181 } // namespace extensions | 185 } // namespace extensions |
| OLD | NEW |