#include "base/path_service.h"
#include "base/strings/stringprintf.h"
#include "base/threading/thread_restrictions.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "extensions/browser/app_window/app_window.h"
#include "extensions/browser/app_window/app_window_registry.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_paths.h"
#include "extensions/shell/browser/shell_app_delegate.h"
#include "extensions/shell/browser/shell_app_view_guest_delegate.h"
#include "extensions/shell/browser/shell_content_browser_client.h"
#include "extensions/shell/browser/shell_extension_system.h"
#include "extensions/shell/browser/shell_extensions_api_client.h"
#include "extensions/shell/browser/shell_extensions_browser_client.h"
#include "extensions/shell/test/shell_test.h"
#include "extensions/test/extension_test_message_listener.h"
namespace {
class MockShellAppDelegate : public extensions::ShellAppDelegate { … };
MockShellAppDelegate* MockShellAppDelegate::instance_ = …;
class MockShellAppViewGuestDelegate
: public extensions::ShellAppViewGuestDelegate { … };
class MockExtensionsAPIClient : public extensions::ShellExtensionsAPIClient { … };
}
namespace extensions {
class AppViewTest : public AppShellTest { … };
IN_PROC_BROWSER_TEST_F(AppViewTest, TestAppViewGoodDataShouldSucceed) { … }
IN_PROC_BROWSER_TEST_F(AppViewTest, TestAppViewMediaRequest) { … }
IN_PROC_BROWSER_TEST_F(AppViewTest, TestAppViewRefusedDataShouldFail) { … }
IN_PROC_BROWSER_TEST_F(AppViewTest, TestAppViewWithUndefinedDataShouldSucceed) { … }
IN_PROC_BROWSER_TEST_F(AppViewTest, TestAppViewNoEmbedRequestListener) { … }
}