| 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 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 // Returns the GuestViewManager singleton. | 35 // Returns the GuestViewManager singleton. |
| 36 TestGuestViewManager* GetGuestViewManager(); | 36 TestGuestViewManager* GetGuestViewManager(); |
| 37 | 37 |
| 38 content::WebContents* GetGuestWebContents(); | 38 content::WebContents* GetGuestWebContents(); |
| 39 void SendMessageToGuestAndWait(const std::string& message, | 39 void SendMessageToGuestAndWait(const std::string& message, |
| 40 const std::string& wait_message); | 40 const std::string& wait_message); |
| 41 void SendMessageToEmbedder(const std::string& message); | 41 void SendMessageToEmbedder(const std::string& message); |
| 42 | 42 |
| 43 // content::BrowserTestBase implementation. | 43 // content::BrowserTestBase implementation. |
| 44 virtual void RunTestOnMainThreadLoop() override; | 44 void RunTestOnMainThreadLoop() override; |
| 45 virtual void SetUpCommandLine(base::CommandLine* command_line) override; | 45 void SetUpCommandLine(base::CommandLine* command_line) override; |
| 46 virtual void SetUpOnMainThread() override; | 46 void SetUpOnMainThread() override; |
| 47 virtual void TearDownOnMainThread() override; | 47 void TearDownOnMainThread() override; |
| 48 | 48 |
| 49 content::WebContents* embedder_web_contents_; | 49 content::WebContents* embedder_web_contents_; |
| 50 TestGuestViewManagerFactory factory_; | 50 TestGuestViewManagerFactory factory_; |
| 51 base::DictionaryValue test_config_; | 51 base::DictionaryValue test_config_; |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 content::WebContents* GetFirstAppWindowWebContents(); | 54 content::WebContents* GetFirstAppWindowWebContents(); |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 class WebViewDPIAPITest : public WebViewAPITest { | 57 class WebViewDPIAPITest : public WebViewAPITest { |
| 58 protected: | 58 protected: |
| 59 virtual void SetUp() override; | 59 void SetUp() override; |
| 60 static float scale() { return 2.0f; } | 60 static float scale() { return 2.0f; } |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace extensions | 63 } // namespace extensions |
| OLD | NEW |