[email protected] | d6429593 | 2011-01-19 22:37:31 | [diff] [blame] | 1 | // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
[email protected] | 37d0691 | 2010-05-20 20:00:31 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "base/file_util.h" |
| 6 | #include "base/path_service.h" |
[email protected] | 49c09c15d | 2010-12-10 02:46:03 | [diff] [blame] | 7 | #include "base/test/test_timeouts.h" |
[email protected] | 37d0691 | 2010-05-20 20:00:31 | [diff] [blame] | 8 | #include "build/build_config.h" |
[email protected] | c08950d2 | 2011-10-13 22:20:29 | [diff] [blame] | 9 | #include "content/public/common/content_switches.h" |
[email protected] | cee34b7 | 2011-11-18 21:52:40 | [diff] [blame] | 10 | #include "content/common/pepper_plugin_registry.h" |
| 11 | #include "chrome/common/chrome_paths.h" |
[email protected] | 37d0691 | 2010-05-20 20:00:31 | [diff] [blame] | 12 | #include "chrome/common/chrome_switches.h" |
| 13 | #include "chrome/test/automation/tab_proxy.h" |
[email protected] | efc3a40e | 2011-11-23 02:32:51 | [diff] [blame] | 14 | #include "chrome/test/base/ui_test_utils.h" |
[email protected] | 37d0691 | 2010-05-20 20:00:31 | [diff] [blame] | 15 | #include "chrome/test/ui/ui_test.h" |
| 16 | #include "net/base/net_util.h" |
[email protected] | 3985ba8 | 2010-07-29 21:44:12 | [diff] [blame] | 17 | #include "net/test/test_server.h" |
[email protected] | 0bd75368 | 2010-12-16 18:15:52 | [diff] [blame] | 18 | #include "webkit/plugins/plugin_switches.h" |
[email protected] | 37d0691 | 2010-05-20 20:00:31 | [diff] [blame] | 19 | |
| 20 | namespace { |
| 21 | |
[email protected] | df4bdd0 | 2010-06-10 17:56:53 | [diff] [blame] | 22 | // Platform-specific filename relative to the chrome executable. |
[email protected] | 37d0691 | 2010-05-20 20:00:31 | [diff] [blame] | 23 | #if defined(OS_WIN) |
| 24 | const wchar_t library_name[] = L"ppapi_tests.dll"; |
| 25 | #elif defined(OS_MACOSX) |
| 26 | const char library_name[] = "ppapi_tests.plugin"; |
| 27 | #elif defined(OS_POSIX) |
[email protected] | df4bdd0 | 2010-06-10 17:56:53 | [diff] [blame] | 28 | const char library_name[] = "libppapi_tests.so"; |
[email protected] | 37d0691 | 2010-05-20 20:00:31 | [diff] [blame] | 29 | #endif |
| 30 | |
| 31 | } // namespace |
| 32 | |
[email protected] | cee34b7 | 2011-11-18 21:52:40 | [diff] [blame] | 33 | class PPAPITestBase : public UITest { |
[email protected] | 37d0691 | 2010-05-20 20:00:31 | [diff] [blame] | 34 | public: |
[email protected] | cee34b7 | 2011-11-18 21:52:40 | [diff] [blame] | 35 | PPAPITestBase() { |
[email protected] | 37d0691 | 2010-05-20 20:00:31 | [diff] [blame] | 36 | // The test sends us the result via a cookie. |
| 37 | launch_arguments_.AppendSwitch(switches::kEnableFileCookies); |
[email protected] | 6a2c9cb | 2010-06-11 20:47:50 | [diff] [blame] | 38 | |
| 39 | // Some stuff is hung off of the testing interface which is not enabled |
| 40 | // by default. |
| 41 | launch_arguments_.AppendSwitch(switches::kEnablePepperTesting); |
[email protected] | eff5e888 | 2010-10-20 00:24:46 | [diff] [blame] | 42 | |
[email protected] | 678e68a | 2011-09-01 15:23:56 | [diff] [blame] | 43 | // Smooth scrolling confuses the scrollbar test. |
| 44 | launch_arguments_.AppendSwitch(switches::kDisableSmoothScrolling); |
[email protected] | 37d0691 | 2010-05-20 20:00:31 | [diff] [blame] | 45 | } |
| 46 | |
[email protected] | cee34b7 | 2011-11-18 21:52:40 | [diff] [blame] | 47 | virtual std::string BuildQuery(const std::string& base, |
| 48 | const std::string& test_case)=0; |
| 49 | |
[email protected] | 44d80ea | 2010-07-02 20:14:25 | [diff] [blame] | 50 | void RunTest(const std::string& test_case) { |
[email protected] | 37d0691 | 2010-05-20 20:00:31 | [diff] [blame] | 51 | FilePath test_path; |
[email protected] | cee34b7 | 2011-11-18 21:52:40 | [diff] [blame] | 52 | EXPECT_TRUE(PathService::Get(base::DIR_SOURCE_ROOT, &test_path)); |
[email protected] | 37d0691 | 2010-05-20 20:00:31 | [diff] [blame] | 53 | test_path = test_path.Append(FILE_PATH_LITERAL("ppapi")); |
| 54 | test_path = test_path.Append(FILE_PATH_LITERAL("tests")); |
[email protected] | 44d80ea | 2010-07-02 20:14:25 | [diff] [blame] | 55 | test_path = test_path.Append(FILE_PATH_LITERAL("test_case.html")); |
[email protected] | 37d0691 | 2010-05-20 20:00:31 | [diff] [blame] | 56 | |
| 57 | // Sanity check the file name. |
| 58 | EXPECT_TRUE(file_util::PathExists(test_path)); |
| 59 | |
[email protected] | 44d80ea | 2010-07-02 20:14:25 | [diff] [blame] | 60 | GURL::Replacements replacements; |
[email protected] | cee34b7 | 2011-11-18 21:52:40 | [diff] [blame] | 61 | std::string query = BuildQuery("", test_case); |
[email protected] | ebc5c8be | 2011-05-20 22:52:59 | [diff] [blame] | 62 | replacements.SetQuery(query.c_str(), url_parse::Component(0, query.size())); |
[email protected] | 37d0691 | 2010-05-20 20:00:31 | [diff] [blame] | 63 | GURL test_url = net::FilePathToFileURL(test_path); |
[email protected] | 44d80ea | 2010-07-02 20:14:25 | [diff] [blame] | 64 | RunTestURL(test_url.ReplaceComponents(replacements)); |
| 65 | } |
| 66 | |
| 67 | void RunTestViaHTTP(const std::string& test_case) { |
[email protected] | cee34b7 | 2011-11-18 21:52:40 | [diff] [blame] | 68 | // For HTTP tests, we use the output DIR to grab the generated files such |
| 69 | // as the NEXEs. |
| 70 | FilePath exe_dir = CommandLine::ForCurrentProcess()->GetProgram().DirName(); |
| 71 | FilePath src_dir; |
| 72 | ASSERT_TRUE(PathService::Get(base::DIR_SOURCE_ROOT, &src_dir)); |
| 73 | |
| 74 | // TestServer expects a path relative to source. So we must first |
| 75 | // generate absolute paths to SRC and EXE and from there generate |
| 76 | // a relative path. |
| 77 | if (!exe_dir.IsAbsolute()) file_util::AbsolutePath(&exe_dir); |
| 78 | if (!src_dir.IsAbsolute()) file_util::AbsolutePath(&src_dir); |
| 79 | ASSERT_TRUE(exe_dir.IsAbsolute()); |
| 80 | ASSERT_TRUE(src_dir.IsAbsolute()); |
| 81 | |
| 82 | size_t match, exe_size, src_size; |
| 83 | std::vector<FilePath::StringType> src_parts, exe_parts; |
| 84 | |
| 85 | // Determine point at which src and exe diverge, and create a relative path. |
| 86 | exe_dir.GetComponents(&exe_parts); |
| 87 | src_dir.GetComponents(&src_parts); |
| 88 | exe_size = exe_parts.size(); |
| 89 | src_size = src_parts.size(); |
| 90 | for (match = 0; match < exe_size && match < src_size; ++match) { |
| 91 | if (exe_parts[match] != src_parts[match]) |
| 92 | break; |
| 93 | } |
| 94 | FilePath web_dir; |
| 95 | for (size_t tmp_itr = match; tmp_itr < src_size; ++tmp_itr) { |
| 96 | web_dir = web_dir.Append(FILE_PATH_LITERAL("..")); |
| 97 | } |
| 98 | for (; match < exe_size; ++match) { |
| 99 | web_dir = web_dir.Append(exe_parts[match]); |
| 100 | } |
| 101 | |
| 102 | net::TestServer test_server(net::TestServer::TYPE_HTTP, web_dir); |
[email protected] | 95409e1 | 2010-08-17 20:07:11 | [diff] [blame] | 103 | ASSERT_TRUE(test_server.Start()); |
[email protected] | cee34b7 | 2011-11-18 21:52:40 | [diff] [blame] | 104 | std::string query = BuildQuery("files/test_case.html?", test_case); |
| 105 | RunTestURL(test_server.GetURL(query)); |
[email protected] | 44d80ea | 2010-07-02 20:14:25 | [diff] [blame] | 106 | } |
| 107 | |
[email protected] | efc3a40e | 2011-11-23 02:32:51 | [diff] [blame] | 108 | void RunTestWithWebSocketServer(const std::string& test_case) { |
| 109 | FilePath websocket_root_dir; |
| 110 | ASSERT_TRUE( |
| 111 | PathService::Get(chrome::DIR_LAYOUT_TESTS, &websocket_root_dir)); |
| 112 | |
| 113 | ui_test_utils::TestWebSocketServer server; |
| 114 | ASSERT_TRUE(server.Start(websocket_root_dir)); |
| 115 | RunTest(test_case); |
| 116 | } |
| 117 | |
[email protected] | d406742 | 2011-12-07 05:24:24 | [diff] [blame] | 118 | std::string StripPrefixes(const std::string& test_name) { |
| 119 | const char* const prefixes[] = { "FAILS_", "FLAKY_", "DISABLED_" }; |
| 120 | for (size_t i = 0; i < sizeof(prefixes)/sizeof(prefixes[0]); ++i) |
| 121 | if (test_name.find(prefixes[i]) == 0) |
| 122 | return test_name.substr(strlen(prefixes[i])); |
| 123 | return test_name; |
| 124 | } |
| 125 | |
[email protected] | 44d80ea | 2010-07-02 20:14:25 | [diff] [blame] | 126 | private: |
| 127 | void RunTestURL(const GURL& test_url) { |
[email protected] | 37d0691 | 2010-05-20 20:00:31 | [diff] [blame] | 128 | scoped_refptr<TabProxy> tab(GetActiveTab()); |
| 129 | ASSERT_TRUE(tab.get()); |
| 130 | ASSERT_TRUE(tab->NavigateToURL(test_url)); |
[email protected] | 49c09c15d | 2010-12-10 02:46:03 | [diff] [blame] | 131 | |
[email protected] | 451b182 | 2011-12-21 13:00:48 | [diff] [blame] | 132 | // The large timeout was causing the cycle time for the whole test suite |
| 133 | // to be too long when a tiny bug caused all tests to timeout. |
| 134 | // http://crbug.com/108264 |
| 135 | int timeout_ms = 90000; |
| 136 | //int timeout_ms = TestTimeouts::large_test_timeout_ms()); |
| 137 | |
[email protected] | b46661f | 2011-08-25 01:42:53 | [diff] [blame] | 138 | // See comment above TestingInstance in ppapi/test/testing_instance.h. |
| 139 | // Basically it sets a series of numbered cookies. The value of "..." means |
| 140 | // it's still working and we should continue to wait, any other value |
| 141 | // indicates completion (in this case it will start with "PASS" or "FAIL"). |
| 142 | // This keeps us from timing out on cookie waits for long tests. |
| 143 | int progress_number = 0; |
| 144 | std::string progress; |
| 145 | while (true) { |
| 146 | std::string cookie_name = StringPrintf("PPAPI_PROGRESS_%d", |
| 147 | progress_number); |
| 148 | progress = WaitUntilCookieNonEmpty(tab.get(), test_url, |
[email protected] | 451b182 | 2011-12-21 13:00:48 | [diff] [blame] | 149 | cookie_name.c_str(), timeout_ms); |
[email protected] | b46661f | 2011-08-25 01:42:53 | [diff] [blame] | 150 | if (progress != "...") |
| 151 | break; |
| 152 | progress_number++; |
| 153 | } |
[email protected] | 49c09c15d | 2010-12-10 02:46:03 | [diff] [blame] | 154 | |
[email protected] | b46661f | 2011-08-25 01:42:53 | [diff] [blame] | 155 | if (progress_number == 0) { |
| 156 | // Failing the first time probably means the plugin wasn't loaded. |
| 157 | ASSERT_FALSE(progress.empty()) |
| 158 | << "Plugin couldn't be loaded. Make sure the PPAPI test plugin is " |
| 159 | << "built, in the right place, and doesn't have any missing symbols."; |
| 160 | } else { |
| 161 | ASSERT_FALSE(progress.empty()) << "Test timed out."; |
| 162 | } |
[email protected] | 49c09c15d | 2010-12-10 02:46:03 | [diff] [blame] | 163 | |
[email protected] | b46661f | 2011-08-25 01:42:53 | [diff] [blame] | 164 | EXPECT_STREQ("PASS", progress.c_str()); |
[email protected] | 37d0691 | 2010-05-20 20:00:31 | [diff] [blame] | 165 | } |
| 166 | }; |
| 167 | |
[email protected] | cee34b7 | 2011-11-18 21:52:40 | [diff] [blame] | 168 | // In-process plugin test runner. See OutOfProcessPPAPITest below for the |
| 169 | // out-of-process version. |
| 170 | class PPAPITest : public PPAPITestBase { |
| 171 | public: |
| 172 | PPAPITest() { |
| 173 | // Append the switch to register the pepper plugin. |
| 174 | // library name = <out dir>/<test_name>.<library_extension> |
| 175 | // MIME type = application/x-ppapi-<test_name> |
| 176 | FilePath plugin_dir; |
| 177 | EXPECT_TRUE(PathService::Get(base::DIR_EXE, &plugin_dir)); |
| 178 | |
| 179 | FilePath plugin_lib = plugin_dir.Append(library_name); |
| 180 | EXPECT_TRUE(file_util::PathExists(plugin_lib)); |
| 181 | FilePath::StringType pepper_plugin = plugin_lib.value(); |
| 182 | pepper_plugin.append(FILE_PATH_LITERAL(";application/x-ppapi-tests")); |
| 183 | launch_arguments_.AppendSwitchNative(switches::kRegisterPepperPlugins, |
| 184 | pepper_plugin); |
[email protected] | ef5e98e | 2011-12-06 09:49:18 | [diff] [blame] | 185 | launch_arguments_.AppendSwitchASCII(switches::kAllowNaClSocketAPI, |
| 186 | "127.0.0.1"); |
[email protected] | cee34b7 | 2011-11-18 21:52:40 | [diff] [blame] | 187 | } |
| 188 | |
| 189 | std::string BuildQuery(const std::string& base, |
| 190 | const std::string& test_case){ |
| 191 | return StringPrintf("%stestcase=%s", base.c_str(), test_case.c_str()); |
| 192 | } |
| 193 | |
| 194 | }; |
| 195 | |
[email protected] | 3252338 | 2011-06-10 02:30:00 | [diff] [blame] | 196 | // Variant of PPAPITest that runs plugins out-of-process to test proxy |
| 197 | // codepaths. |
| 198 | class OutOfProcessPPAPITest : public PPAPITest { |
| 199 | public: |
| 200 | OutOfProcessPPAPITest() { |
| 201 | // Run PPAPI out-of-process to exercise proxy implementations. |
| 202 | launch_arguments_.AppendSwitch(switches::kPpapiOutOfProcess); |
| 203 | } |
| 204 | }; |
| 205 | |
[email protected] | cee34b7 | 2011-11-18 21:52:40 | [diff] [blame] | 206 | // NaCl plugin test runner. |
| 207 | class PPAPINaClTest : public PPAPITestBase { |
| 208 | public: |
| 209 | PPAPINaClTest() { |
| 210 | FilePath plugin_lib; |
| 211 | EXPECT_TRUE(PathService::Get(chrome::FILE_NACL_PLUGIN, &plugin_lib)); |
| 212 | EXPECT_TRUE(file_util::PathExists(plugin_lib)); |
| 213 | |
| 214 | // Enable running NaCl outside of the store. |
| 215 | launch_arguments_.AppendSwitch(switches::kEnableNaCl); |
[email protected] | ef5e98e | 2011-12-06 09:49:18 | [diff] [blame] | 216 | launch_arguments_.AppendSwitchASCII(switches::kAllowNaClSocketAPI, |
| 217 | "127.0.0.1"); |
[email protected] | cee34b7 | 2011-11-18 21:52:40 | [diff] [blame] | 218 | } |
| 219 | |
| 220 | // Append the correct mode and testcase string |
| 221 | std::string BuildQuery(const std::string& base, |
| 222 | const std::string& test_case) { |
| 223 | return StringPrintf("%smode=nacl&testcase=%s", base.c_str(), |
| 224 | test_case.c_str()); |
| 225 | } |
| 226 | }; |
| 227 | |
[email protected] | 24050234 | 2011-12-22 20:07:49 | [diff] [blame] | 228 | class PPAPINaClTestDisallowedSockets : public PPAPITestBase { |
| 229 | public: |
| 230 | PPAPINaClTestDisallowedSockets() { |
| 231 | FilePath plugin_lib; |
| 232 | EXPECT_TRUE(PathService::Get(chrome::FILE_NACL_PLUGIN, &plugin_lib)); |
| 233 | EXPECT_TRUE(file_util::PathExists(plugin_lib)); |
| 234 | |
| 235 | // Enable running NaCl outside of the store. |
| 236 | launch_arguments_.AppendSwitch(switches::kEnableNaCl); |
| 237 | } |
| 238 | |
| 239 | // Append the correct mode and testcase string |
| 240 | std::string BuildQuery(const std::string& base, |
| 241 | const std::string& test_case) { |
| 242 | return StringPrintf("%smode=nacl&testcase=%s", base.c_str(), |
| 243 | test_case.c_str()); |
| 244 | } |
| 245 | }; |
| 246 | |
[email protected] | d406742 | 2011-12-07 05:24:24 | [diff] [blame] | 247 | // This macro finesses macro expansion to do what we want. |
| 248 | #define STRIP_PREFIXES(test_name) StripPrefixes(#test_name) |
[email protected] | cee34b7 | 2011-11-18 21:52:40 | [diff] [blame] | 249 | |
[email protected] | d8eba1a | 2011-07-20 21:41:55 | [diff] [blame] | 250 | // Use these macros to run the tests for a specific interface. |
| 251 | // Most interfaces should be tested with both macros. |
| 252 | #define TEST_PPAPI_IN_PROCESS(test_name) \ |
| 253 | TEST_F(PPAPITest, test_name) { \ |
[email protected] | d406742 | 2011-12-07 05:24:24 | [diff] [blame] | 254 | RunTest(STRIP_PREFIXES(test_name)); \ |
[email protected] | d8eba1a | 2011-07-20 21:41:55 | [diff] [blame] | 255 | } |
| 256 | #define TEST_PPAPI_OUT_OF_PROCESS(test_name) \ |
| 257 | TEST_F(OutOfProcessPPAPITest, test_name) { \ |
[email protected] | d406742 | 2011-12-07 05:24:24 | [diff] [blame] | 258 | RunTest(STRIP_PREFIXES(test_name)); \ |
[email protected] | d8eba1a | 2011-07-20 21:41:55 | [diff] [blame] | 259 | } |
[email protected] | 9815108e | 2011-05-27 21:50:28 | [diff] [blame] | 260 | |
[email protected] | d8eba1a | 2011-07-20 21:41:55 | [diff] [blame] | 261 | // Similar macros that test over HTTP. |
| 262 | #define TEST_PPAPI_IN_PROCESS_VIA_HTTP(test_name) \ |
| 263 | TEST_F(PPAPITest, test_name) { \ |
[email protected] | d406742 | 2011-12-07 05:24:24 | [diff] [blame] | 264 | RunTestViaHTTP(STRIP_PREFIXES(test_name)); \ |
[email protected] | d8eba1a | 2011-07-20 21:41:55 | [diff] [blame] | 265 | } |
| 266 | #define TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(test_name) \ |
| 267 | TEST_F(OutOfProcessPPAPITest, test_name) { \ |
[email protected] | d406742 | 2011-12-07 05:24:24 | [diff] [blame] | 268 | RunTestViaHTTP(STRIP_PREFIXES(test_name)); \ |
[email protected] | d8eba1a | 2011-07-20 21:41:55 | [diff] [blame] | 269 | } |
[email protected] | 97f706c | 2011-07-11 20:32:53 | [diff] [blame] | 270 | |
[email protected] | 31c1a7e | 2011-11-26 03:45:30 | [diff] [blame] | 271 | // Similar macros that test with WebSocket server |
| 272 | #define TEST_PPAPI_IN_PROCESS_WITH_WS(test_name) \ |
| 273 | TEST_F(PPAPITest, test_name) { \ |
[email protected] | d406742 | 2011-12-07 05:24:24 | [diff] [blame] | 274 | RunTestWithWebSocketServer(STRIP_PREFIXES(test_name)); \ |
[email protected] | 31c1a7e | 2011-11-26 03:45:30 | [diff] [blame] | 275 | } |
| 276 | #define TEST_PPAPI_OUT_OF_PROCESS_WITH_WS(test_name) \ |
| 277 | TEST_F(OutOfProcessPPAPITest, test_name) { \ |
[email protected] | d406742 | 2011-12-07 05:24:24 | [diff] [blame] | 278 | RunTestWithWebSocketServer(STRIP_PREFIXES(test_name)); \ |
[email protected] | 31c1a7e | 2011-11-26 03:45:30 | [diff] [blame] | 279 | } |
| 280 | |
| 281 | |
[email protected] | c1af406f | 2011-11-27 07:05:20 | [diff] [blame] | 282 | #if defined(DISABLE_NACL) |
| 283 | #define TEST_PPAPI_NACL_VIA_HTTP(test_name) |
[email protected] | 24050234 | 2011-12-22 20:07:49 | [diff] [blame] | 284 | #define TEST_PPAPI_NACL_VIA_HTTP_DISALLOWED_SOCKETS(test_name) |
[email protected] | c1af406f | 2011-11-27 07:05:20 | [diff] [blame] | 285 | #else |
[email protected] | d8eba1a | 2011-07-20 21:41:55 | [diff] [blame] | 286 | |
[email protected] | cee34b7 | 2011-11-18 21:52:40 | [diff] [blame] | 287 | // NaCl based PPAPI tests |
| 288 | #define TEST_PPAPI_NACL_VIA_HTTP(test_name) \ |
| 289 | TEST_F(PPAPINaClTest, test_name) { \ |
[email protected] | d406742 | 2011-12-07 05:24:24 | [diff] [blame] | 290 | RunTestViaHTTP(STRIP_PREFIXES(test_name)); \ |
[email protected] | cee34b7 | 2011-11-18 21:52:40 | [diff] [blame] | 291 | } |
[email protected] | 24050234 | 2011-12-22 20:07:49 | [diff] [blame] | 292 | |
| 293 | // NaCl based PPAPI tests with disallowed socket API |
| 294 | #define TEST_PPAPI_NACL_VIA_HTTP_DISALLOWED_SOCKETS(test_name) \ |
| 295 | TEST_F(PPAPINaClTestDisallowedSockets, test_name) { \ |
| 296 | RunTestViaHTTP(STRIP_PREFIXES(test_name)); \ |
| 297 | } |
[email protected] | c1af406f | 2011-11-27 07:05:20 | [diff] [blame] | 298 | #endif |
| 299 | |
[email protected] | cee34b7 | 2011-11-18 21:52:40 | [diff] [blame] | 300 | |
[email protected] | d8eba1a | 2011-07-20 21:41:55 | [diff] [blame] | 301 | // |
| 302 | // Interface tests. |
| 303 | // |
[email protected] | d8eba1a | 2011-07-20 21:41:55 | [diff] [blame] | 304 | |
[email protected] | a9d504a | 2011-11-22 22:46:47 | [diff] [blame] | 305 | // Disable tests under ASAN. http://crbug.com/104832. |
| 306 | // This is a bit heavy handed, but the majority of these tests fail under ASAN. |
| 307 | // See bug for history. |
| 308 | #if !defined(ADDRESS_SANITIZER) |
| 309 | |
[email protected] | d8eba1a | 2011-07-20 21:41:55 | [diff] [blame] | 310 | TEST_PPAPI_IN_PROCESS(Broker) |
[email protected] | c4d5960e5 | 2011-07-21 21:47:43 | [diff] [blame] | 311 | TEST_PPAPI_OUT_OF_PROCESS(Broker) |
[email protected] | d8eba1a | 2011-07-20 21:41:55 | [diff] [blame] | 312 | |
| 313 | TEST_PPAPI_IN_PROCESS(Core) |
| 314 | TEST_PPAPI_OUT_OF_PROCESS(Core) |
| 315 | |
[email protected] | e62768f | 2011-12-20 17:51:34 | [diff] [blame] | 316 | // Times out on Linux. http://crbug.com/108180 |
| 317 | #if defined(OS_LINUX) |
| 318 | #define MAYBE_CursorControl DISABLED_CursorControl |
| 319 | #else |
| 320 | #define MAYBE_CursorControl CursorControl |
| 321 | #endif |
| 322 | |
| 323 | TEST_PPAPI_IN_PROCESS(MAYBE_CursorControl) |
| 324 | TEST_PPAPI_OUT_OF_PROCESS(MAYBE_CursorControl) |
| 325 | TEST_PPAPI_NACL_VIA_HTTP(MAYBE_CursorControl) |
[email protected] | 9815108e | 2011-05-27 21:50:28 | [diff] [blame] | 326 | |
[email protected] | 1f8b15f | 2011-12-30 12:45:09 | [diff] [blame^] | 327 | // Times out on Linux. http://crbug.com/108859 |
| 328 | #if defined(OS_LINUX) |
| 329 | #define MAYBE_InputEvent DISABLED_InputEvent |
| 330 | #else |
| 331 | #define MAYBE_InputEvent InputEvent |
| 332 | #endif |
| 333 | |
| 334 | TEST_PPAPI_IN_PROCESS(MAYBE_InputEvent) |
| 335 | TEST_PPAPI_OUT_OF_PROCESS(MAYBE_InputEvent) |
[email protected] | 0861010 | 2011-12-17 14:24:30 | [diff] [blame] | 336 | // TODO(bbudge) Enable when input events are proxied correctly for NaCl. |
| 337 | TEST_PPAPI_NACL_VIA_HTTP(DISABLED_InputEvent) |
[email protected] | ed33e2e | 2011-11-20 21:18:07 | [diff] [blame] | 338 | |
[email protected] | c4d5960e5 | 2011-07-21 21:47:43 | [diff] [blame] | 339 | TEST_PPAPI_IN_PROCESS(Instance) |
[email protected] | c74e095c | 2011-12-09 00:07:34 | [diff] [blame] | 340 | TEST_PPAPI_OUT_OF_PROCESS(Instance) |
| 341 | // The Instance test is actually InstanceDeprecated which isn't supported |
| 342 | // by NaCl. |
[email protected] | 4d849c6 | 2010-09-02 16:00:12 | [diff] [blame] | 343 | |
[email protected] | d8eba1a | 2011-07-20 21:41:55 | [diff] [blame] | 344 | TEST_PPAPI_IN_PROCESS(Graphics2D) |
[email protected] | 779a24a4 | 2011-09-13 05:41:58 | [diff] [blame] | 345 | TEST_PPAPI_OUT_OF_PROCESS(Graphics2D) |
[email protected] | cee34b7 | 2011-11-18 21:52:40 | [diff] [blame] | 346 | TEST_PPAPI_NACL_VIA_HTTP(Graphics2D) |
[email protected] | 1559f51 | 2010-05-25 04:21:49 | [diff] [blame] | 347 | |
[email protected] | d8eba1a | 2011-07-20 21:41:55 | [diff] [blame] | 348 | TEST_PPAPI_IN_PROCESS(ImageData) |
[email protected] | c4d5960e5 | 2011-07-21 21:47:43 | [diff] [blame] | 349 | TEST_PPAPI_OUT_OF_PROCESS(ImageData) |
[email protected] | cee34b7 | 2011-11-18 21:52:40 | [diff] [blame] | 350 | TEST_PPAPI_NACL_VIA_HTTP(ImageData) |
[email protected] | 4faecb5 | 2010-06-18 23:27:11 | [diff] [blame] | 351 | |
[email protected] | d8eba1a | 2011-07-20 21:41:55 | [diff] [blame] | 352 | TEST_PPAPI_IN_PROCESS(Buffer) |
| 353 | TEST_PPAPI_OUT_OF_PROCESS(Buffer) |
[email protected] | 4faecb5 | 2010-06-18 23:27:11 | [diff] [blame] | 354 | |
[email protected] | ef5e98e | 2011-12-06 09:49:18 | [diff] [blame] | 355 | // TODO(ygorshenin): investigate why |
| 356 | // TEST_PPAPI_IN_PROCESS(TCPSocketPrivateShared) fails, |
| 357 | // http://crbug.com/105860. |
| 358 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(TCPSocketPrivateShared) |
| 359 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(TCPSocketPrivateShared) |
| 360 | TEST_PPAPI_NACL_VIA_HTTP(TCPSocketPrivateShared) |
| 361 | |
| 362 | // TODO(ygorshenin): investigate why |
| 363 | // TEST_PPAPI_IN_PROCESS(UDPSocketPrivateShared) fails, |
| 364 | // http://crbug.com/105860. |
| 365 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(UDPSocketPrivateShared) |
| 366 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(UDPSocketPrivateShared) |
| 367 | TEST_PPAPI_NACL_VIA_HTTP(UDPSocketPrivateShared) |
| 368 | |
[email protected] | 24050234 | 2011-12-22 20:07:49 | [diff] [blame] | 369 | TEST_PPAPI_NACL_VIA_HTTP_DISALLOWED_SOCKETS(TCPSocketPrivateDisallowed) |
| 370 | TEST_PPAPI_NACL_VIA_HTTP_DISALLOWED_SOCKETS(UDPSocketPrivateDisallowed) |
| 371 | |
[email protected] | d406742 | 2011-12-07 05:24:24 | [diff] [blame] | 372 | // URLLoader tests. |
| 373 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLLoader_BasicGET) |
| 374 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLLoader_BasicPOST) |
| 375 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLLoader_BasicFilePOST) |
| 376 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLLoader_BasicFileRangePOST) |
| 377 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLLoader_CompoundBodyPOST) |
| 378 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLLoader_EmptyDataPOST) |
| 379 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLLoader_BinaryDataPOST) |
| 380 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLLoader_CustomRequestHeader) |
| 381 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLLoader_FailsBogusContentLength) |
| 382 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLLoader_StreamToFile) |
| 383 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLLoader_UntrustedSameOriginRestriction) |
| 384 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLLoader_TrustedSameOriginRestriction) |
| 385 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLLoader_UntrustedCrossOriginRequest) |
| 386 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLLoader_TrustedCrossOriginRequest) |
| 387 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLLoader_UntrustedJavascriptURLRestriction) |
| 388 | // TODO(bbudge) Fix Javascript URLs for trusted loaders. |
| 389 | // http://crbug.com/103062 |
| 390 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(FAILS_URLLoader_TrustedJavascriptURLRestriction) |
[email protected] | 91ebba3 | 2011-12-08 01:35:42 | [diff] [blame] | 391 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLLoader_UntrustedHttpRestriction) |
| 392 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLLoader_TrustedHttpRestriction) |
[email protected] | c95b4579 | 2011-12-08 23:54:18 | [diff] [blame] | 393 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLLoader_FollowURLRedirect) |
[email protected] | d406742 | 2011-12-07 05:24:24 | [diff] [blame] | 394 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLLoader_AuditURLRedirect) |
| 395 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLLoader_AbortCalls) |
| 396 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLLoader_UntendedLoad) |
| 397 | |
| 398 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(URLLoader_BasicGET) |
| 399 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(URLLoader_BasicPOST) |
| 400 | // TODO(bbudge) Enable these when PPB_FileIO is proxied. |
| 401 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(DISABLED_URLLoader_BasicFilePOST) |
| 402 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(DISABLED_URLLoader_BasicFileRangePOST) |
| 403 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(URLLoader_CompoundBodyPOST) |
| 404 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(URLLoader_EmptyDataPOST) |
| 405 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(URLLoader_BinaryDataPOST) |
| 406 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(URLLoader_CustomRequestHeader) |
| 407 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(URLLoader_FailsBogusContentLength) |
| 408 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(URLLoader_StreamToFile) |
| 409 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(URLLoader_UntrustedSameOriginRestriction) |
| 410 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(URLLoader_TrustedSameOriginRestriction) |
| 411 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(URLLoader_UntrustedCrossOriginRequest) |
| 412 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(URLLoader_TrustedCrossOriginRequest) |
| 413 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(URLLoader_UntrustedJavascriptURLRestriction) |
| 414 | // TODO(bbudge) Fix Javascript URLs for trusted loaders. |
| 415 | // http://crbug.com/103062 |
| 416 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP( |
| 417 | FAILS_URLLoader_TrustedJavascriptURLRestriction) |
[email protected] | 91ebba3 | 2011-12-08 01:35:42 | [diff] [blame] | 418 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(URLLoader_UntrustedHttpRestriction) |
| 419 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(URLLoader_TrustedHttpRestriction) |
[email protected] | c95b4579 | 2011-12-08 23:54:18 | [diff] [blame] | 420 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(URLLoader_FollowURLRedirect) |
[email protected] | d406742 | 2011-12-07 05:24:24 | [diff] [blame] | 421 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(URLLoader_AuditURLRedirect) |
| 422 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(URLLoader_AbortCalls) |
| 423 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(URLLoader_UntendedLoad) |
| 424 | |
| 425 | TEST_PPAPI_NACL_VIA_HTTP(URLLoader_BasicGET) |
| 426 | TEST_PPAPI_NACL_VIA_HTTP(URLLoader_BasicPOST) |
| 427 | TEST_PPAPI_NACL_VIA_HTTP(URLLoader_BasicFilePOST) |
| 428 | TEST_PPAPI_NACL_VIA_HTTP(URLLoader_BasicFileRangePOST) |
| 429 | TEST_PPAPI_NACL_VIA_HTTP(URLLoader_CompoundBodyPOST) |
| 430 | TEST_PPAPI_NACL_VIA_HTTP(URLLoader_EmptyDataPOST) |
| 431 | TEST_PPAPI_NACL_VIA_HTTP(URLLoader_BinaryDataPOST) |
| 432 | TEST_PPAPI_NACL_VIA_HTTP(URLLoader_CustomRequestHeader) |
| 433 | TEST_PPAPI_NACL_VIA_HTTP(URLLoader_FailsBogusContentLength) |
| 434 | TEST_PPAPI_NACL_VIA_HTTP(URLLoader_StreamToFile) |
[email protected] | c95b4579 | 2011-12-08 23:54:18 | [diff] [blame] | 435 | TEST_PPAPI_NACL_VIA_HTTP(URLLoader_UntrustedSameOriginRestriction) |
| 436 | TEST_PPAPI_NACL_VIA_HTTP(URLLoader_UntrustedCrossOriginRequest) |
[email protected] | d406742 | 2011-12-07 05:24:24 | [diff] [blame] | 437 | TEST_PPAPI_NACL_VIA_HTTP(URLLoader_UntrustedJavascriptURLRestriction) |
[email protected] | 91ebba3 | 2011-12-08 01:35:42 | [diff] [blame] | 438 | TEST_PPAPI_NACL_VIA_HTTP(URLLoader_UntrustedHttpRestriction) |
[email protected] | c95b4579 | 2011-12-08 23:54:18 | [diff] [blame] | 439 | TEST_PPAPI_NACL_VIA_HTTP(URLLoader_FollowURLRedirect) |
[email protected] | d406742 | 2011-12-07 05:24:24 | [diff] [blame] | 440 | TEST_PPAPI_NACL_VIA_HTTP(URLLoader_AuditURLRedirect) |
| 441 | TEST_PPAPI_NACL_VIA_HTTP(URLLoader_AbortCalls) |
| 442 | TEST_PPAPI_NACL_VIA_HTTP(URLLoader_UntendedLoad) |
[email protected] | 1ff90a8 | 2011-11-22 21:51:49 | [diff] [blame] | 443 | |
[email protected] | d8eba1a | 2011-07-20 21:41:55 | [diff] [blame] | 444 | TEST_PPAPI_IN_PROCESS(PaintAggregator) |
[email protected] | 1ff90a8 | 2011-11-22 21:51:49 | [diff] [blame] | 445 | TEST_PPAPI_OUT_OF_PROCESS(PaintAggregator) |
[email protected] | cee34b7 | 2011-11-18 21:52:40 | [diff] [blame] | 446 | TEST_PPAPI_NACL_VIA_HTTP(PaintAggregator) |
[email protected] | 2f0e64e | 2010-07-08 22:10:22 | [diff] [blame] | 447 | |
[email protected] | d8eba1a | 2011-07-20 21:41:55 | [diff] [blame] | 448 | TEST_PPAPI_IN_PROCESS(Scrollbar) |
[email protected] | c4d5960e5 | 2011-07-21 21:47:43 | [diff] [blame] | 449 | // http://crbug.com/89961 |
[email protected] | 1ff90a8 | 2011-11-22 21:51:49 | [diff] [blame] | 450 | TEST_F(OutOfProcessPPAPITest, FAILS_Scrollbar) { |
[email protected] | c4d5960e5 | 2011-07-21 21:47:43 | [diff] [blame] | 451 | RunTest("Scrollbar"); |
| 452 | } |
[email protected] | cee34b7 | 2011-11-18 21:52:40 | [diff] [blame] | 453 | TEST_PPAPI_NACL_VIA_HTTP(Scrollbar) |
[email protected] | 39ef434 | 2010-08-05 22:56:03 | [diff] [blame] | 454 | |
[email protected] | d8eba1a | 2011-07-20 21:41:55 | [diff] [blame] | 455 | TEST_PPAPI_IN_PROCESS(URLUtil) |
[email protected] | c4d5960e5 | 2011-07-21 21:47:43 | [diff] [blame] | 456 | TEST_PPAPI_OUT_OF_PROCESS(URLUtil) |
[email protected] | e1333fb | 2010-08-22 04:54:00 | [diff] [blame] | 457 | |
[email protected] | d8eba1a | 2011-07-20 21:41:55 | [diff] [blame] | 458 | TEST_PPAPI_IN_PROCESS(CharSet) |
[email protected] | c4d5960e5 | 2011-07-21 21:47:43 | [diff] [blame] | 459 | TEST_PPAPI_OUT_OF_PROCESS(CharSet) |
[email protected] | 167b0dd1 | 2010-09-30 20:00:40 | [diff] [blame] | 460 | |
[email protected] | 947bcaf | 2011-11-22 21:56:04 | [diff] [blame] | 461 | TEST_PPAPI_IN_PROCESS(Crypto) |
[email protected] | 8e66338e | 2011-11-22 21:57:17 | [diff] [blame] | 462 | TEST_PPAPI_OUT_OF_PROCESS(Crypto) |
[email protected] | 8d770e49 | 2011-10-11 04:54:31 | [diff] [blame] | 463 | |
[email protected] | d8eba1a | 2011-07-20 21:41:55 | [diff] [blame] | 464 | TEST_PPAPI_IN_PROCESS(Var) |
[email protected] | 608fcb9 | 2011-12-02 20:44:59 | [diff] [blame] | 465 | TEST_PPAPI_OUT_OF_PROCESS(Var) |
[email protected] | cee34b7 | 2011-11-18 21:52:40 | [diff] [blame] | 466 | TEST_PPAPI_NACL_VIA_HTTP(Var) |
[email protected] | 0925622c | 2011-06-08 20:22:02 | [diff] [blame] | 467 | |
[email protected] | d8eba1a | 2011-07-20 21:41:55 | [diff] [blame] | 468 | TEST_PPAPI_IN_PROCESS(VarDeprecated) |
[email protected] | b538d7e | 2011-12-20 00:07:39 | [diff] [blame] | 469 | TEST_PPAPI_OUT_OF_PROCESS(VarDeprecated) |
[email protected] | 3ed0969 | 2010-11-13 00:28:17 | [diff] [blame] | 470 | |
[email protected] | b20df1c | 2011-08-03 14:38:24 | [diff] [blame] | 471 | // Windows defines 'PostMessage', so we have to undef it. |
| 472 | #ifdef PostMessage |
| 473 | #undef PostMessage |
| 474 | #endif |
[email protected] | 2622d6b | 2011-11-16 04:28:02 | [diff] [blame] | 475 | TEST_PPAPI_IN_PROCESS(PostMessage_SendInInit) |
| 476 | TEST_PPAPI_IN_PROCESS(PostMessage_SendingData) |
[email protected] | 8cc26a4 | 2011-12-15 21:22:31 | [diff] [blame] | 477 | TEST_PPAPI_IN_PROCESS(PostMessage_SendingArrayBuffer) |
[email protected] | 2622d6b | 2011-11-16 04:28:02 | [diff] [blame] | 478 | TEST_PPAPI_IN_PROCESS(PostMessage_MessageEvent) |
| 479 | TEST_PPAPI_IN_PROCESS(PostMessage_NoHandler) |
| 480 | TEST_PPAPI_IN_PROCESS(PostMessage_ExtraParam) |
| 481 | TEST_PPAPI_OUT_OF_PROCESS(PostMessage_SendInInit) |
| 482 | TEST_PPAPI_OUT_OF_PROCESS(PostMessage_SendingData) |
[email protected] | 8cc26a4 | 2011-12-15 21:22:31 | [diff] [blame] | 483 | TEST_PPAPI_OUT_OF_PROCESS(DISABLED_PostMessage_SendingArrayBuffer) |
[email protected] | 2622d6b | 2011-11-16 04:28:02 | [diff] [blame] | 484 | TEST_PPAPI_OUT_OF_PROCESS(PostMessage_MessageEvent) |
| 485 | TEST_PPAPI_OUT_OF_PROCESS(PostMessage_NoHandler) |
| 486 | TEST_PPAPI_OUT_OF_PROCESS(PostMessage_ExtraParam) |
[email protected] | 6749050 | 2011-09-06 21:13:33 | [diff] [blame] | 487 | #if !defined(OS_WIN) |
| 488 | // Times out on Windows XP: http://crbug.com/95557 |
[email protected] | 2622d6b | 2011-11-16 04:28:02 | [diff] [blame] | 489 | TEST_PPAPI_OUT_OF_PROCESS(PostMessage_NonMainThread) |
[email protected] | 6749050 | 2011-09-06 21:13:33 | [diff] [blame] | 490 | #endif |
[email protected] | 0861010 | 2011-12-17 14:24:30 | [diff] [blame] | 491 | TEST_PPAPI_NACL_VIA_HTTP(PostMessage_SendInInit) |
| 492 | TEST_PPAPI_NACL_VIA_HTTP(PostMessage_SendingData) |
| 493 | TEST_PPAPI_NACL_VIA_HTTP(DISABLED_PostMessage_SendingArrayBuffer) |
| 494 | TEST_PPAPI_NACL_VIA_HTTP(PostMessage_MessageEvent) |
| 495 | TEST_PPAPI_NACL_VIA_HTTP(PostMessage_NoHandler) |
| 496 | TEST_PPAPI_NACL_VIA_HTTP(PostMessage_ExtraParam) |
[email protected] | f1ced92 | 2011-03-26 20:56:35 | [diff] [blame] | 497 | |
[email protected] | d8eba1a | 2011-07-20 21:41:55 | [diff] [blame] | 498 | TEST_PPAPI_IN_PROCESS(Memory) |
| 499 | TEST_PPAPI_OUT_OF_PROCESS(Memory) |
[email protected] | cee34b7 | 2011-11-18 21:52:40 | [diff] [blame] | 500 | TEST_PPAPI_NACL_VIA_HTTP(Memory) |
[email protected] | 14710e22 | 2011-07-05 21:37:00 | [diff] [blame] | 501 | |
[email protected] | 7ace8ad | 2011-08-06 03:23:58 | [diff] [blame] | 502 | TEST_PPAPI_IN_PROCESS(VideoDecoder) |
| 503 | TEST_PPAPI_OUT_OF_PROCESS(VideoDecoder) |
| 504 | |
[email protected] | d406742 | 2011-12-07 05:24:24 | [diff] [blame] | 505 | // Touch and SetLength fail on Mac and Linux due to sandbox restrictions. |
| 506 | // http://crbug.com/101128 |
| 507 | #if defined(OS_MACOSX) || defined(OS_LINUX) |
| 508 | #define MAYBE_FileIO_ReadWriteSetLength DISABLED_FileIO_ReadWriteSetLength |
| 509 | #define MAYBE_FileIO_TouchQuery DISABLED_FileIO_TouchQuery |
| 510 | #define MAYBE_FileIO_WillWriteWillSetLength \ |
| 511 | DISABLED_FileIO_WillWriteWillSetLength |
| 512 | #else |
| 513 | #define MAYBE_FileIO_ReadWriteSetLength FileIO_ReadWriteSetLength |
| 514 | #define MAYBE_FileIO_TouchQuery FileIO_TouchQuery |
| 515 | #define MAYBE_FileIO_WillWriteWillSetLength FileIO_WillWriteWillSetLength |
| 516 | #endif |
[email protected] | cee34b7 | 2011-11-18 21:52:40 | [diff] [blame] | 517 | |
[email protected] | d406742 | 2011-12-07 05:24:24 | [diff] [blame] | 518 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(FileIO_Open) |
| 519 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(FileIO_AbortCalls) |
| 520 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(FileIO_ParallelReads) |
| 521 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(FileIO_ParallelWrites) |
| 522 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(FileIO_NotAllowMixedReadWrite) |
| 523 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(MAYBE_FileIO_ReadWriteSetLength) |
| 524 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(MAYBE_FileIO_TouchQuery) |
| 525 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(MAYBE_FileIO_WillWriteWillSetLength) |
| 526 | |
[email protected] | 694878de | 2011-12-21 20:22:14 | [diff] [blame] | 527 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(FileIO_Open) |
| 528 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(FileIO_AbortCalls) |
| 529 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(FileIO_ParallelReads) |
| 530 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(FileIO_ParallelWrites) |
| 531 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(FileIO_NotAllowMixedReadWrite) |
| 532 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(MAYBE_FileIO_ReadWriteSetLength) |
| 533 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(MAYBE_FileIO_TouchQuery) |
| 534 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(MAYBE_FileIO_WillWriteWillSetLength) |
[email protected] | d406742 | 2011-12-07 05:24:24 | [diff] [blame] | 535 | |
| 536 | TEST_PPAPI_NACL_VIA_HTTP(FileIO_Open) |
| 537 | TEST_PPAPI_NACL_VIA_HTTP(FileIO_AbortCalls) |
| 538 | TEST_PPAPI_NACL_VIA_HTTP(FileIO_ParallelReads) |
| 539 | TEST_PPAPI_NACL_VIA_HTTP(FileIO_ParallelWrites) |
| 540 | TEST_PPAPI_NACL_VIA_HTTP(FileIO_NotAllowMixedReadWrite) |
| 541 | TEST_PPAPI_NACL_VIA_HTTP(MAYBE_FileIO_TouchQuery) |
| 542 | TEST_PPAPI_NACL_VIA_HTTP(MAYBE_FileIO_ReadWriteSetLength) |
| 543 | // The following test requires PPB_FileIO_Trusted, not available in NaCl. |
| 544 | TEST_PPAPI_NACL_VIA_HTTP(DISABLED_FileIO_WillWriteWillSetLength) |
[email protected] | 3ed0969 | 2010-11-13 00:28:17 | [diff] [blame] | 545 | |
[email protected] | d8eba1a | 2011-07-20 21:41:55 | [diff] [blame] | 546 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(FileRef) |
[email protected] | cc6db92 | 2011-12-10 16:54:22 | [diff] [blame] | 547 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(FileRef) |
[email protected] | cee34b7 | 2011-11-18 21:52:40 | [diff] [blame] | 548 | TEST_PPAPI_NACL_VIA_HTTP(FileRef) |
| 549 | |
[email protected] | c4d5960e5 | 2011-07-21 21:47:43 | [diff] [blame] | 550 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(FileSystem) |
[email protected] | 0fe6c242 | 2011-09-07 20:20:41 | [diff] [blame] | 551 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(FileSystem) |
[email protected] | cee34b7 | 2011-11-18 21:52:40 | [diff] [blame] | 552 | TEST_PPAPI_NACL_VIA_HTTP(FileSystem) |
[email protected] | 3ed0969 | 2010-11-13 00:28:17 | [diff] [blame] | 553 | |
[email protected] | e62768f | 2011-12-20 17:51:34 | [diff] [blame] | 554 | // http://crbug.com/96767 and 104384 for aura and 108180 for linux |
| 555 | // reaches NOTIMPLEMENTED checks in some cases. |
| 556 | #if defined(OS_MACOSX) || defined(USE_AURA) || defined(OS_LINUX) |
[email protected] | 81a33d9 | 2011-12-20 01:13:03 | [diff] [blame] | 557 | #define MAYBE_FlashFullscreen DISABLED_FlashFullscreen |
[email protected] | 155be09 | 2011-11-16 04:34:59 | [diff] [blame] | 558 | #else |
[email protected] | e34789d | 2011-12-22 20:22:45 | [diff] [blame] | 559 | // http://crbug.com/108471. |
| 560 | #define MAYBE_FlashFullscreen FLAKY_FlashFullscreen |
[email protected] | 155be09 | 2011-11-16 04:34:59 | [diff] [blame] | 561 | #endif |
| 562 | |
| 563 | TEST_F(PPAPITest, MAYBE_FlashFullscreen) { |
[email protected] | 06e0a34 | 2011-09-27 04:24:30 | [diff] [blame] | 564 | RunTestViaHTTP("FlashFullscreen"); |
| 565 | } |
[email protected] | 155be09 | 2011-11-16 04:34:59 | [diff] [blame] | 566 | TEST_F(OutOfProcessPPAPITest, MAYBE_FlashFullscreen) { |
[email protected] | 06e0a34 | 2011-09-27 04:24:30 | [diff] [blame] | 567 | RunTestViaHTTP("FlashFullscreen"); |
| 568 | } |
[email protected] | 400d9e9 | 2011-12-08 22:54:26 | [diff] [blame] | 569 | |
[email protected] | 1fb49195 | 2011-12-12 05:59:23 | [diff] [blame] | 570 | // http://crbug.com/107175. |
| 571 | #if defined(OS_MACOSX) || defined(OS_CHROMEOS) || defined(OS_LINUX) |
[email protected] | 400d9e9 | 2011-12-08 22:54:26 | [diff] [blame] | 572 | #define MAYBE_Fullscreen FAILS_Fullscreen |
| 573 | #else |
| 574 | #define MAYBE_Fullscreen Fullscreen |
| 575 | #endif |
| 576 | |
| 577 | // TODO(bbudge) Fix fullscreen on Mac. |
| 578 | TEST_PPAPI_IN_PROCESS_VIA_HTTP(MAYBE_Fullscreen) |
| 579 | // TODO(bbudge) Will fail until we add an ACK message to extend user gesture. |
| 580 | TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(FAILS_Fullscreen) |
| 581 | // TODO(bbudge) Enable when PPB_Testing_Dev SimulateInputEvent is proxied. |
| 582 | TEST_PPAPI_NACL_VIA_HTTP(DISABLED_Fullscreen) |
[email protected] | 6d54e2ed | 2011-09-15 23:02:04 | [diff] [blame] | 583 | |
[email protected] | 3c149c6 | 2011-11-11 23:22:52 | [diff] [blame] | 584 | TEST_PPAPI_IN_PROCESS(FlashClipboard) |
| 585 | TEST_PPAPI_OUT_OF_PROCESS(FlashClipboard) |
[email protected] | fe833c9 | 2011-10-22 16:13:22 | [diff] [blame] | 586 | |
[email protected] | 35f0598 | 2011-06-09 20:38:01 | [diff] [blame] | 587 | #if defined(OS_POSIX) |
[email protected] | 09283b7 | 2011-06-01 16:04:29 | [diff] [blame] | 588 | #define MAYBE_DirectoryReader FLAKY_DirectoryReader |
| 589 | #else |
| 590 | #define MAYBE_DirectoryReader DirectoryReader |
| 591 | #endif |
| 592 | |
[email protected] | 35f0598 | 2011-06-09 20:38:01 | [diff] [blame] | 593 | // Flaky on Mac + Linux, maybe http://codereview.chromium.org/7094008 |
[email protected] | a367e28 | 2011-12-02 19:13:25 | [diff] [blame] | 594 | // Not implemented out of process: http://crbug.com/106129 |
[email protected] | 09283b7 | 2011-06-01 16:04:29 | [diff] [blame] | 595 | TEST_F(PPAPITest, MAYBE_DirectoryReader) { |
[email protected] | 3ed0969 | 2010-11-13 00:28:17 | [diff] [blame] | 596 | RunTestViaHTTP("DirectoryReader"); |
| 597 | } |
[email protected] | 9b4cb19 | 2011-02-16 00:17:22 | [diff] [blame] | 598 | |
[email protected] | c462d12 | 2011-05-25 01:54:04 | [diff] [blame] | 599 | #if defined(ENABLE_P2P_APIS) |
[email protected] | ff8de996 | 2011-08-31 23:23:57 | [diff] [blame] | 600 | // Flaky. http://crbug.com/84294 |
[email protected] | ba0f4581 | 2011-07-11 18:56:32 | [diff] [blame] | 601 | TEST_F(PPAPITest, FLAKY_Transport) { |
[email protected] | 9b4cb19 | 2011-02-16 00:17:22 | [diff] [blame] | 602 | RunTest("Transport"); |
| 603 | } |
[email protected] | c4d5960e5 | 2011-07-21 21:47:43 | [diff] [blame] | 604 | // http://crbug.com/89961 |
| 605 | TEST_F(OutOfProcessPPAPITest, FAILS_Transport) { |
| 606 | RunTestViaHTTP("Transport"); |
| 607 | } |
[email protected] | c462d12 | 2011-05-25 01:54:04 | [diff] [blame] | 608 | #endif // ENABLE_P2P_APIS |
[email protected] | 3105048 | 2011-07-22 17:03:19 | [diff] [blame] | 609 | |
[email protected] | 02ab09c3 | 2011-11-29 18:59:44 | [diff] [blame] | 610 | // There is no proxy. This is used for PDF metrics reporting, and PDF only |
| 611 | // runs in process, so there's currently no need for a proxy. |
[email protected] | 3105048 | 2011-07-22 17:03:19 | [diff] [blame] | 612 | TEST_PPAPI_IN_PROCESS(UMA) |
[email protected] | 87f3637 | 2011-11-11 20:49:01 | [diff] [blame] | 613 | |
[email protected] | ba35935 | 2011-11-22 00:24:13 | [diff] [blame] | 614 | TEST_PPAPI_IN_PROCESS(NetAddressPrivate_AreEqual) |
| 615 | TEST_PPAPI_IN_PROCESS(NetAddressPrivate_AreHostsEqual) |
| 616 | TEST_PPAPI_IN_PROCESS(NetAddressPrivate_Describe) |
| 617 | TEST_PPAPI_IN_PROCESS(NetAddressPrivate_ReplacePort) |
| 618 | TEST_PPAPI_IN_PROCESS(NetAddressPrivate_GetAnyAddress) |
| 619 | TEST_PPAPI_IN_PROCESS(NetAddressPrivate_DescribeIPv6) |
| 620 | TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate_AreEqual) |
| 621 | TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate_AreHostsEqual) |
| 622 | TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate_Describe) |
| 623 | TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate_ReplacePort) |
| 624 | TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate_GetAnyAddress) |
| 625 | TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate_DescribeIPv6) |
[email protected] | cfff9eb8 | 2011-11-15 03:17:10 | [diff] [blame] | 626 | |
| 627 | // PPB_TCPSocket_Private currently isn't supported in-process. |
| 628 | TEST_F(OutOfProcessPPAPITest, TCPSocketPrivate) { |
| 629 | RunTestViaHTTP("TCPSocketPrivate"); |
| 630 | } |
[email protected] | d67f5ae | 2011-11-17 22:41:52 | [diff] [blame] | 631 | |
| 632 | TEST_PPAPI_IN_PROCESS(Flash_SetInstanceAlwaysOnTop) |
| 633 | TEST_PPAPI_IN_PROCESS(Flash_GetProxyForURL) |
| 634 | TEST_PPAPI_IN_PROCESS(Flash_MessageLoop) |
| 635 | TEST_PPAPI_IN_PROCESS(Flash_GetLocalTimeZoneOffset) |
| 636 | TEST_PPAPI_IN_PROCESS(Flash_GetCommandLineArgs) |
| 637 | TEST_PPAPI_OUT_OF_PROCESS(Flash_SetInstanceAlwaysOnTop) |
| 638 | TEST_PPAPI_OUT_OF_PROCESS(Flash_GetProxyForURL) |
| 639 | TEST_PPAPI_OUT_OF_PROCESS(Flash_MessageLoop) |
| 640 | TEST_PPAPI_OUT_OF_PROCESS(Flash_GetLocalTimeZoneOffset) |
| 641 | TEST_PPAPI_OUT_OF_PROCESS(Flash_GetCommandLineArgs) |
[email protected] | 081d147b | 2011-11-18 05:51:54 | [diff] [blame] | 642 | |
[email protected] | 081d147b | 2011-11-18 05:51:54 | [diff] [blame] | 643 | TEST_PPAPI_IN_PROCESS(WebSocket_IsWebSocket) |
[email protected] | a1cff78 | 2011-12-06 18:06:34 | [diff] [blame] | 644 | TEST_PPAPI_IN_PROCESS(WebSocket_UninitializedPropertiesAccess) |
[email protected] | 65f6b00 | 2011-12-01 07:44:11 | [diff] [blame] | 645 | TEST_PPAPI_IN_PROCESS(WebSocket_InvalidConnect) |
[email protected] | 32b05b1 | 2011-12-09 04:26:28 | [diff] [blame] | 646 | TEST_PPAPI_IN_PROCESS(WebSocket_Protocols) |
[email protected] | 65f6b00 | 2011-12-01 07:44:11 | [diff] [blame] | 647 | TEST_PPAPI_IN_PROCESS(WebSocket_GetURL) |
[email protected] | 31c1a7e | 2011-11-26 03:45:30 | [diff] [blame] | 648 | TEST_PPAPI_IN_PROCESS_WITH_WS(WebSocket_ValidConnect) |
[email protected] | 5cf0fb1 | 2011-12-06 18:33:11 | [diff] [blame] | 649 | TEST_PPAPI_IN_PROCESS_WITH_WS(WebSocket_InvalidClose) |
| 650 | TEST_PPAPI_IN_PROCESS_WITH_WS(WebSocket_ValidClose) |
[email protected] | 65f6b00 | 2011-12-01 07:44:11 | [diff] [blame] | 651 | TEST_PPAPI_IN_PROCESS_WITH_WS(WebSocket_GetProtocol) |
[email protected] | 31c1a7e | 2011-11-26 03:45:30 | [diff] [blame] | 652 | TEST_PPAPI_IN_PROCESS_WITH_WS(WebSocket_TextSendReceive) |
[email protected] | e18637f | 2011-12-28 05:51:32 | [diff] [blame] | 653 | TEST_PPAPI_IN_PROCESS_WITH_WS(WebSocket_BinarySendReceive) |
[email protected] | 3e919cb | 2011-12-16 07:28:21 | [diff] [blame] | 654 | TEST_PPAPI_IN_PROCESS_WITH_WS(WebSocket_CcInterfaces) |
[email protected] | a9d504a | 2011-11-22 22:46:47 | [diff] [blame] | 655 | |
[email protected] | c3d0621 | 2011-12-01 00:40:52 | [diff] [blame] | 656 | TEST_PPAPI_IN_PROCESS(AudioConfig_ValidConfigs) |
| 657 | TEST_PPAPI_IN_PROCESS(AudioConfig_InvalidConfigs) |
| 658 | TEST_PPAPI_OUT_OF_PROCESS(AudioConfig_ValidConfigs) |
| 659 | TEST_PPAPI_OUT_OF_PROCESS(AudioConfig_InvalidConfigs) |
[email protected] | 65bc6036 | 2011-11-30 06:20:37 | [diff] [blame] | 660 | |
[email protected] | c6b2b7f | 2011-12-01 02:38:25 | [diff] [blame] | 661 | TEST_PPAPI_IN_PROCESS(Audio_Creation) |
| 662 | TEST_PPAPI_IN_PROCESS(Audio_DestroyNoStop) |
| 663 | TEST_PPAPI_IN_PROCESS(Audio_Failures) |
| 664 | TEST_PPAPI_OUT_OF_PROCESS(Audio_Creation) |
| 665 | TEST_PPAPI_OUT_OF_PROCESS(Audio_DestroyNoStop) |
| 666 | TEST_PPAPI_OUT_OF_PROCESS(Audio_Failures) |
| 667 | |
[email protected] | a9d504a | 2011-11-22 22:46:47 | [diff] [blame] | 668 | #endif // ADDRESS_SANITIZER |