Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Unified Diff: extensions/browser/guest_view/web_view/web_view_apitest.h

Issue 626093002: Cleanup webview app_shell_browsertests and add webview media permission tests in app_shell_browsert… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tests_load
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: extensions/browser/guest_view/web_view/web_view_apitest.h
diff --git a/extensions/browser/guest_view/web_view/web_view_apitest.h b/extensions/browser/guest_view/web_view/web_view_apitest.h
new file mode 100644
index 0000000000000000000000000000000000000000..ecd5a977ec31258ec31054363c97f219c0f2b0ad
--- /dev/null
+++ b/extensions/browser/guest_view/web_view/web_view_apitest.h
@@ -0,0 +1,36 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/values.h"
+#include "extensions/browser/guest_view/test_guest_view_manager.h"
+#include "extensions/shell/test/shell_test.h"
+
+namespace content {
+class WebContents;
+} // namespace content
+
+namespace extensions {
+class TestGuestViewManager;
+
+class WebViewAPITest : public AppShellTest {
+ protected:
+ WebViewAPITest();
+
+ void LaunchApp(const std::string& app_location);
+ void RunTest(const std::string& test_name, const std::string& app_location);
+ void StartTestServer();
+ void StopTestServer();
+ TestGuestViewManager* GetGuestViewManager();
+
+ // content::BrowserTestBase implementation
+ virtual void SetUpOnMainThread() override;
+ virtual void TearDownOnMainThread() override;
+
+ protected:
+ content::WebContents* embedder_web_contents_;
+ TestGuestViewManagerFactory factory_;
+ base::DictionaryValue test_config_;
+};
+
+} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698