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

Side by Side Diff: extensions/browser/guest_view/web_view/web_view_apitest.h

Issue 634403003: Adding webview tests to app_shell_browsertest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo 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 unified diff | Download patch
« no previous file with comments | « no previous file | extensions/browser/guest_view/web_view/web_view_apitest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/values.h" 5 #include "base/values.h"
6 #include "extensions/browser/guest_view/test_guest_view_manager.h" 6 #include "extensions/browser/guest_view/test_guest_view_manager.h"
7 #include "extensions/shell/test/shell_test.h" 7 #include "extensions/shell/test/shell_test.h"
8 #include "ui/gfx/switches.h" 8 #include "ui/gfx/switches.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 17 matching lines...) Expand all
28 28
29 // Starts/Stops the embedded test server. 29 // Starts/Stops the embedded test server.
30 void StartTestServer(); 30 void StartTestServer();
31 void StopTestServer(); 31 void StopTestServer();
32 32
33 // Returns the GuestViewManager singleton. 33 // Returns the GuestViewManager singleton.
34 TestGuestViewManager* GetGuestViewManager(); 34 TestGuestViewManager* GetGuestViewManager();
35 35
36 // content::BrowserTestBase implementation. 36 // content::BrowserTestBase implementation.
37 virtual void RunTestOnMainThreadLoop() override; 37 virtual void RunTestOnMainThreadLoop() override;
38 virtual void SetUpCommandLine(base::CommandLine* command_line) override;
38 virtual void SetUpOnMainThread() override; 39 virtual void SetUpOnMainThread() override;
39 virtual void TearDownOnMainThread() override; 40 virtual void TearDownOnMainThread() override;
40 41
41 protected: 42 protected:
42 content::WebContents* embedder_web_contents_; 43 content::WebContents* embedder_web_contents_;
43 TestGuestViewManagerFactory factory_; 44 TestGuestViewManagerFactory factory_;
44 base::DictionaryValue test_config_; 45 base::DictionaryValue test_config_;
45 }; 46 };
46 47
47 class WebViewDPIAPITest : public WebViewAPITest { 48 class WebViewDPIAPITest : public WebViewAPITest {
48 protected: 49 protected:
49 virtual void SetUp() override; 50 virtual void SetUp() override;
50 static float scale() { return 2.0f; } 51 static float scale() { return 2.0f; }
51 }; 52 };
52 53
53 } // namespace extensions 54 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | extensions/browser/guest_view/web_view/web_view_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698