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

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

Issue 2561983002: NavigationController: Reload methods migration (Closed)
Patch Set: merge master Created 4 years 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
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 "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 <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 } 396 }
397 397
398 // This test verifies that reloading the embedder reloads the guest (and doest 398 // This test verifies that reloading the embedder reloads the guest (and doest
399 // not crash). 399 // not crash).
400 IN_PROC_BROWSER_TEST_F(WebViewAPITest, ReloadEmbedder) { 400 IN_PROC_BROWSER_TEST_F(WebViewAPITest, ReloadEmbedder) {
401 // Just load a guest from other test, we do not want to add a separate 401 // Just load a guest from other test, we do not want to add a separate
402 // app for this test. 402 // app for this test.
403 LaunchApp("web_view/visibility_changed"); 403 LaunchApp("web_view/visibility_changed");
404 404
405 ExtensionTestMessageListener launched_again_listener("LAUNCHED", false); 405 ExtensionTestMessageListener launched_again_listener("LAUNCHED", false);
406 embedder_web_contents_->GetController().Reload(false); 406 embedder_web_contents_->GetController().Reload(content::ReloadType::NORMAL,
407 false);
407 ASSERT_TRUE(launched_again_listener.WaitUntilSatisfied()); 408 ASSERT_TRUE(launched_again_listener.WaitUntilSatisfied());
408 } 409 }
409 410
410 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestAllowTransparencyAttribute) { 411 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestAllowTransparencyAttribute) {
411 RunTest("testAllowTransparencyAttribute", "web_view/apitest"); 412 RunTest("testAllowTransparencyAttribute", "web_view/apitest");
412 } 413 }
413 414
414 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestAPIMethodExistence) { 415 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestAPIMethodExistence) {
415 RunTest("testAPIMethodExistence", "web_view/apitest"); 416 RunTest("testAPIMethodExistence", "web_view/apitest");
416 } 417 }
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 // This test verifies that webview.contentWindow works inside an iframe 751 // This test verifies that webview.contentWindow works inside an iframe
751 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebViewInsideFrame) { 752 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestWebViewInsideFrame) {
752 LaunchApp("web_view/inside_iframe"); 753 LaunchApp("web_view/inside_iframe");
753 } 754 }
754 755
755 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestCaptureVisibleRegion) { 756 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestCaptureVisibleRegion) {
756 RunTest("testCaptureVisibleRegion", "web_view/apitest"); 757 RunTest("testCaptureVisibleRegion", "web_view/apitest");
757 } 758 }
758 759
759 } // namespace extensions 760 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698