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

Side by Side Diff: chrome/browser/apps/web_view_interactive_browsertest.cc

Issue 23514016: <webview>: Cleanup WebRequest event listeners when embedder destroyed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed WebRequest unit test Created 7 years, 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "apps/shell_window.h" 5 #include "apps/shell_window.h"
6 #include "apps/shell_window_registry.h" 6 #include "apps/shell_window_registry.h"
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/apps/app_browsertest_util.h" 9 #include "chrome/browser/apps/app_browsertest_util.h"
10 #include "chrome/browser/extensions/extension_test_message_listener.h" 10 #include "chrome/browser/extensions/extension_test_message_listener.h"
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 } 573 }
574 574
575 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest, 575 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest,
576 NewWindow_WebRequestRemoveElement) { 576 NewWindow_WebRequestRemoveElement) {
577 TestHelper("testNewWindowWebRequestRemoveElement", 577 TestHelper("testNewWindowWebRequestRemoveElement",
578 "DoneNewWindowTest.PASSED", 578 "DoneNewWindowTest.PASSED",
579 "DoneNewWindowTest.FAILED", 579 "DoneNewWindowTest.FAILED",
580 "web_view/newwindow"); 580 "web_view/newwindow");
581 } 581 }
582 582
583 // A custom elements bug needs to be addressed to enable this test:
584 // See http://crbug.com/282477 for more information.
585 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest,
586 DISABLED_NewWindow_WebRequestCloseWindow) {
587 TestHelper("testNewWindowWebRequestCloseWindow",
588 "DoneNewWindowTest.PASSED",
589 "DoneNewWindowTest.FAILED",
590 "web_view/newwindow");
591 }
592
583 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest, ExecuteCode) { 593 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest, ExecuteCode) {
584 ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages. 594 ASSERT_TRUE(StartEmbeddedTestServer()); // For serving guest pages.
585 ASSERT_TRUE(RunPlatformAppTestWithArg( 595 ASSERT_TRUE(RunPlatformAppTestWithArg(
586 "platform_apps/web_view/common", "execute_code")) << message_; 596 "platform_apps/web_view/common", "execute_code")) << message_;
587 } 597 }
588 598
589 // This test used the old Autofill UI, which has been removed. 599 // This test used the old Autofill UI, which has been removed.
590 // See crbug.com/259438 600 // See crbug.com/259438
591 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest, DISABLED_PopupPositioning) { 601 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest, DISABLED_PopupPositioning) {
592 SetupTest( 602 SetupTest(
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 ASSERT_TRUE(done_listener.WaitUntilSatisfied()); 692 ASSERT_TRUE(done_listener.WaitUntilSatisfied());
683 } 693 }
684 694
685 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest, 695 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest,
686 PointerLock_PointerLockLostWithFocus) { 696 PointerLock_PointerLockLostWithFocus) {
687 TestHelper("testPointerLockLostWithFocus", 697 TestHelper("testPointerLockLostWithFocus",
688 "DonePointerLockTest.PASSED", 698 "DonePointerLockTest.PASSED",
689 "DonePointerLockTest.FAILED", 699 "DonePointerLockTest.FAILED",
690 "web_view/pointerlock"); 700 "web_view/pointerlock");
691 } 701 }
OLDNEW
« no previous file with comments | « chrome/browser/apps/web_view_browsertest.cc ('k') | chrome/browser/extensions/api/web_request/web_request_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698