| 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/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 Loading... |
| 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 |
| OLD | NEW |