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 "extensions/browser/guest_view/web_view/web_view_apitest.h" | 5 #include "extensions/browser/guest_view/web_view/web_view_apitest.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 class WebContentsHiddenObserver : public content::WebContentsObserver { | 75 class WebContentsHiddenObserver : public content::WebContentsObserver { |
76 public: | 76 public: |
77 WebContentsHiddenObserver(content::WebContents* web_contents, | 77 WebContentsHiddenObserver(content::WebContents* web_contents, |
78 const base::Closure& hidden_callback) | 78 const base::Closure& hidden_callback) |
79 : WebContentsObserver(web_contents), | 79 : WebContentsObserver(web_contents), |
80 hidden_callback_(hidden_callback), | 80 hidden_callback_(hidden_callback), |
81 hidden_observed_(false) { | 81 hidden_observed_(false) { |
82 } | 82 } |
83 | 83 |
84 // WebContentsObserver. | 84 // WebContentsObserver. |
85 virtual void WasHidden() OVERRIDE { | 85 virtual void WasHidden() override { |
86 hidden_observed_ = true; | 86 hidden_observed_ = true; |
87 hidden_callback_.Run(); | 87 hidden_callback_.Run(); |
88 } | 88 } |
89 | 89 |
90 bool hidden_observed() { return hidden_observed_; } | 90 bool hidden_observed() { return hidden_observed_; } |
91 | 91 |
92 private: | 92 private: |
93 base::Closure hidden_callback_; | 93 base::Closure hidden_callback_; |
94 bool hidden_observed_; | 94 bool hidden_observed_; |
95 | 95 |
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 // object, on the webview element, and hanging directly off webview. | 669 // object, on the webview element, and hanging directly off webview. |
670 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIExistence) { | 670 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIExistence) { |
671 RunTest("testWebRequestAPIExistence", "web_view/apitest"); | 671 RunTest("testWebRequestAPIExistence", "web_view/apitest"); |
672 } | 672 } |
673 | 673 |
674 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIGoogleProperty) { | 674 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebRequestAPIGoogleProperty) { |
675 RunTest("testWebRequestAPIGoogleProperty", "web_view/apitest"); | 675 RunTest("testWebRequestAPIGoogleProperty", "web_view/apitest"); |
676 } | 676 } |
677 | 677 |
678 } // namespace extensions | 678 } // namespace extensions |
OLD | NEW |