OLD | NEW |
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/ui/native_app_window.h" | 5 #include "apps/ui/native_app_window.h" |
6 #include "base/path_service.h" | 6 #include "base/path_service.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/automation/automation_util.h" | 10 #include "chrome/browser/automation/automation_util.h" |
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestAPIMethodExistence) { | 676 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestAPIMethodExistence) { |
677 TestHelper("testAPIMethodExistence", "web_view/shim", NO_TEST_SERVER); | 677 TestHelper("testAPIMethodExistence", "web_view/shim", NO_TEST_SERVER); |
678 } | 678 } |
679 | 679 |
680 // Tests the existence of WebRequest API event objects on the request | 680 // Tests the existence of WebRequest API event objects on the request |
681 // object, on the webview element, and hanging directly off webview. | 681 // object, on the webview element, and hanging directly off webview. |
682 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestWebRequestAPIExistence) { | 682 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestWebRequestAPIExistence) { |
683 TestHelper("testWebRequestAPIExistence", "web_view/shim", NO_TEST_SERVER); | 683 TestHelper("testWebRequestAPIExistence", "web_view/shim", NO_TEST_SERVER); |
684 } | 684 } |
685 | 685 |
686 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestChromeExtensionURL) { | 686 // http://crbug.com/315920 |
| 687 #if defined(GOOGLE_CHROME_BUILD) && (defined(OS_WIN) || defined(OS_LINUX)) |
| 688 #define MAYBE_Shim_TestChromeExtensionURL DISABLED_Shim_TestChromeExtensionURL |
| 689 #else |
| 690 #define MAYBE_Shim_TestChromeExtensionURL Shim_TestChromeExtensionURL |
| 691 #endif |
| 692 IN_PROC_BROWSER_TEST_F(WebViewTest, MAYBE_Shim_TestChromeExtensionURL) { |
687 TestHelper("testChromeExtensionURL", "web_view/shim", NO_TEST_SERVER); | 693 TestHelper("testChromeExtensionURL", "web_view/shim", NO_TEST_SERVER); |
688 } | 694 } |
689 | 695 |
690 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestChromeExtensionRelativePath) { | 696 // http://crbug.com/315920 |
| 697 #if defined(GOOGLE_CHROME_BUILD) && (defined(OS_WIN) || defined(OS_LINUX)) |
| 698 #define MAYBE_Shim_TestChromeExtensionRelativePath \ |
| 699 DISABLED_Shim_TestChromeExtensionRelativePath |
| 700 #else |
| 701 #define MAYBE_Shim_TestChromeExtensionRelativePath \ |
| 702 Shim_TestChromeExtensionRelativePath |
| 703 #endif |
| 704 IN_PROC_BROWSER_TEST_F(WebViewTest, |
| 705 MAYBE_Shim_TestChromeExtensionRelativePath) { |
691 TestHelper("testChromeExtensionRelativePath", | 706 TestHelper("testChromeExtensionRelativePath", |
692 "web_view/shim", | 707 "web_view/shim", |
693 NO_TEST_SERVER); | 708 NO_TEST_SERVER); |
694 } | 709 } |
695 | 710 |
696 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestInvalidChromeExtensionURL) { | 711 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestInvalidChromeExtensionURL) { |
697 TestHelper("testInvalidChromeExtensionURL", "web_view/shim", NO_TEST_SERVER); | 712 TestHelper("testInvalidChromeExtensionURL", "web_view/shim", NO_TEST_SERVER); |
698 } | 713 } |
699 | 714 |
700 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestEventName) { | 715 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestEventName) { |
(...skipping 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1799 pepper_plugin.append(FILE_PATH_LITERAL(";application/x-ppapi-tests")); | 1814 pepper_plugin.append(FILE_PATH_LITERAL(";application/x-ppapi-tests")); |
1800 command_line->AppendSwitchNative(switches::kRegisterPepperPlugins, | 1815 command_line->AppendSwitchNative(switches::kRegisterPepperPlugins, |
1801 pepper_plugin); | 1816 pepper_plugin); |
1802 } | 1817 } |
1803 }; | 1818 }; |
1804 | 1819 |
1805 IN_PROC_BROWSER_TEST_F(WebViewPluginTest, TestLoadPluginEvent) { | 1820 IN_PROC_BROWSER_TEST_F(WebViewPluginTest, TestLoadPluginEvent) { |
1806 TestHelper("testPluginLoadPermission", "web_view/shim", NO_TEST_SERVER); | 1821 TestHelper("testPluginLoadPermission", "web_view/shim", NO_TEST_SERVER); |
1807 } | 1822 } |
1808 #endif // defined(ENABLE_PLUGINS) | 1823 #endif // defined(ENABLE_PLUGINS) |
OLD | NEW |