OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/file_util.h" | 5 #include "base/file_util.h" |
6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
7 #include "base/test/test_timeouts.h" | 7 #include "base/test/test_timeouts.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "content/browser/plugin_service.h" | |
10 #include "content/public/common/content_switches.h" | 9 #include "content/public/common/content_switches.h" |
11 #include "content/common/pepper_plugin_registry.h" | |
12 #include "chrome/common/chrome_paths.h" | |
13 #include "chrome/common/chrome_switches.h" | 10 #include "chrome/common/chrome_switches.h" |
14 #include "chrome/test/automation/tab_proxy.h" | 11 #include "chrome/test/automation/tab_proxy.h" |
15 #include "chrome/test/ui/ui_test.h" | 12 #include "chrome/test/ui/ui_test.h" |
16 #include "net/base/net_util.h" | 13 #include "net/base/net_util.h" |
17 #include "net/test/test_server.h" | 14 #include "net/test/test_server.h" |
18 #include "webkit/plugins/plugin_switches.h" | 15 #include "webkit/plugins/plugin_switches.h" |
19 | 16 |
20 namespace { | 17 namespace { |
21 | 18 |
22 // Platform-specific filename relative to the chrome executable. | 19 // Platform-specific filename relative to the chrome executable. |
23 #if defined(OS_WIN) | 20 #if defined(OS_WIN) |
24 const wchar_t library_name[] = L"ppapi_tests.dll"; | 21 const wchar_t library_name[] = L"ppapi_tests.dll"; |
25 #elif defined(OS_MACOSX) | 22 #elif defined(OS_MACOSX) |
26 const char library_name[] = "ppapi_tests.plugin"; | 23 const char library_name[] = "ppapi_tests.plugin"; |
27 #elif defined(OS_POSIX) | 24 #elif defined(OS_POSIX) |
28 const char library_name[] = "libppapi_tests.so"; | 25 const char library_name[] = "libppapi_tests.so"; |
29 #endif | 26 #endif |
30 | 27 |
31 } // namespace | 28 } // namespace |
32 | 29 |
33 class PPAPITestBase : public UITest { | 30 // In-process plugin test runner. See OutOfProcessPPAPITest below for the |
| 31 // out-of-process version. |
| 32 class PPAPITest : public UITest { |
34 public: | 33 public: |
35 PPAPITestBase() { | 34 PPAPITest() { |
| 35 // Append the switch to register the pepper plugin. |
| 36 // library name = <out dir>/<test_name>.<library_extension> |
| 37 // MIME type = application/x-ppapi-<test_name> |
| 38 FilePath plugin_dir; |
| 39 PathService::Get(base::DIR_EXE, &plugin_dir); |
| 40 |
| 41 FilePath plugin_lib = plugin_dir.Append(library_name); |
| 42 EXPECT_TRUE(file_util::PathExists(plugin_lib)); |
| 43 FilePath::StringType pepper_plugin = plugin_lib.value(); |
| 44 pepper_plugin.append(FILE_PATH_LITERAL(";application/x-ppapi-tests")); |
| 45 launch_arguments_.AppendSwitchNative(switches::kRegisterPepperPlugins, |
| 46 pepper_plugin); |
| 47 |
36 // The test sends us the result via a cookie. | 48 // The test sends us the result via a cookie. |
37 launch_arguments_.AppendSwitch(switches::kEnableFileCookies); | 49 launch_arguments_.AppendSwitch(switches::kEnableFileCookies); |
38 | 50 |
39 // Some stuff is hung off of the testing interface which is not enabled | 51 // Some stuff is hung off of the testing interface which is not enabled |
40 // by default. | 52 // by default. |
41 launch_arguments_.AppendSwitch(switches::kEnablePepperTesting); | 53 launch_arguments_.AppendSwitch(switches::kEnablePepperTesting); |
42 | 54 |
43 // Smooth scrolling confuses the scrollbar test. | 55 // Smooth scrolling confuses the scrollbar test. |
44 launch_arguments_.AppendSwitch(switches::kDisableSmoothScrolling); | 56 launch_arguments_.AppendSwitch(switches::kDisableSmoothScrolling); |
45 } | 57 } |
46 | 58 |
47 virtual std::string BuildQuery(const std::string& base, | |
48 const std::string& test_case)=0; | |
49 | |
50 void RunTest(const std::string& test_case) { | 59 void RunTest(const std::string& test_case) { |
51 FilePath test_path; | 60 FilePath test_path; |
52 EXPECT_TRUE(PathService::Get(base::DIR_SOURCE_ROOT, &test_path)); | 61 PathService::Get(base::DIR_SOURCE_ROOT, &test_path); |
53 test_path = test_path.Append(FILE_PATH_LITERAL("ppapi")); | 62 test_path = test_path.Append(FILE_PATH_LITERAL("ppapi")); |
54 test_path = test_path.Append(FILE_PATH_LITERAL("tests")); | 63 test_path = test_path.Append(FILE_PATH_LITERAL("tests")); |
55 test_path = test_path.Append(FILE_PATH_LITERAL("test_case.html")); | 64 test_path = test_path.Append(FILE_PATH_LITERAL("test_case.html")); |
56 | 65 |
57 // Sanity check the file name. | 66 // Sanity check the file name. |
58 EXPECT_TRUE(file_util::PathExists(test_path)); | 67 EXPECT_TRUE(file_util::PathExists(test_path)); |
59 | 68 |
60 GURL::Replacements replacements; | 69 GURL::Replacements replacements; |
61 std::string query = BuildQuery("", test_case); | 70 std::string query("testcase="); |
| 71 query += test_case; |
62 replacements.SetQuery(query.c_str(), url_parse::Component(0, query.size())); | 72 replacements.SetQuery(query.c_str(), url_parse::Component(0, query.size())); |
63 GURL test_url = net::FilePathToFileURL(test_path); | 73 GURL test_url = net::FilePathToFileURL(test_path); |
64 RunTestURL(test_url.ReplaceComponents(replacements)); | 74 RunTestURL(test_url.ReplaceComponents(replacements)); |
65 } | 75 } |
66 | 76 |
67 void RunTestViaHTTP(const std::string& test_case) { | 77 void RunTestViaHTTP(const std::string& test_case) { |
68 FilePath fp = CommandLine::ForCurrentProcess()->GetProgram(); | |
69 net::TestServer test_server( | 78 net::TestServer test_server( |
70 net::TestServer::TYPE_HTTP, fp.DirName()); | 79 net::TestServer::TYPE_HTTP, |
| 80 FilePath(FILE_PATH_LITERAL("ppapi/tests"))); |
71 ASSERT_TRUE(test_server.Start()); | 81 ASSERT_TRUE(test_server.Start()); |
72 std::string query = BuildQuery("files/test_case.html?", test_case); | 82 RunTestURL( |
73 RunTestURL(test_server.GetURL(query)); | 83 test_server.GetURL("files/test_case.html?testcase=" + test_case)); |
74 } | 84 } |
75 | 85 |
76 private: | 86 private: |
77 void RunTestURL(const GURL& test_url) { | 87 void RunTestURL(const GURL& test_url) { |
78 scoped_refptr<TabProxy> tab(GetActiveTab()); | 88 scoped_refptr<TabProxy> tab(GetActiveTab()); |
79 ASSERT_TRUE(tab.get()); | 89 ASSERT_TRUE(tab.get()); |
80 ASSERT_TRUE(tab->NavigateToURL(test_url)); | 90 ASSERT_TRUE(tab->NavigateToURL(test_url)); |
81 | 91 |
82 // See comment above TestingInstance in ppapi/test/testing_instance.h. | 92 // See comment above TestingInstance in ppapi/test/testing_instance.h. |
83 // Basically it sets a series of numbered cookies. The value of "..." means | 93 // Basically it sets a series of numbered cookies. The value of "..." means |
(...skipping 18 matching lines...) Expand all Loading... |
102 << "Plugin couldn't be loaded. Make sure the PPAPI test plugin is " | 112 << "Plugin couldn't be loaded. Make sure the PPAPI test plugin is " |
103 << "built, in the right place, and doesn't have any missing symbols."; | 113 << "built, in the right place, and doesn't have any missing symbols."; |
104 } else { | 114 } else { |
105 ASSERT_FALSE(progress.empty()) << "Test timed out."; | 115 ASSERT_FALSE(progress.empty()) << "Test timed out."; |
106 } | 116 } |
107 | 117 |
108 EXPECT_STREQ("PASS", progress.c_str()); | 118 EXPECT_STREQ("PASS", progress.c_str()); |
109 } | 119 } |
110 }; | 120 }; |
111 | 121 |
112 // In-process plugin test runner. See OutOfProcessPPAPITest below for the | |
113 // out-of-process version. | |
114 class PPAPITest : public PPAPITestBase { | |
115 public: | |
116 PPAPITest() { | |
117 // Append the switch to register the pepper plugin. | |
118 // library name = <out dir>/<test_name>.<library_extension> | |
119 // MIME type = application/x-ppapi-<test_name> | |
120 FilePath plugin_dir; | |
121 EXPECT_TRUE(PathService::Get(base::DIR_EXE, &plugin_dir)); | |
122 | |
123 FilePath plugin_lib = plugin_dir.Append(library_name); | |
124 EXPECT_TRUE(file_util::PathExists(plugin_lib)); | |
125 FilePath::StringType pepper_plugin = plugin_lib.value(); | |
126 pepper_plugin.append(FILE_PATH_LITERAL(";application/x-ppapi-tests")); | |
127 launch_arguments_.AppendSwitchNative(switches::kRegisterPepperPlugins, | |
128 pepper_plugin); | |
129 } | |
130 | |
131 std::string BuildQuery(const std::string& base, | |
132 const std::string& test_case){ | |
133 return StringPrintf("%stestcase=%s", base.c_str(), test_case.c_str()); | |
134 } | |
135 | |
136 }; | |
137 | |
138 // Variant of PPAPITest that runs plugins out-of-process to test proxy | 122 // Variant of PPAPITest that runs plugins out-of-process to test proxy |
139 // codepaths. | 123 // codepaths. |
140 class OutOfProcessPPAPITest : public PPAPITest { | 124 class OutOfProcessPPAPITest : public PPAPITest { |
141 public: | 125 public: |
142 OutOfProcessPPAPITest() { | 126 OutOfProcessPPAPITest() { |
143 // Run PPAPI out-of-process to exercise proxy implementations. | 127 // Run PPAPI out-of-process to exercise proxy implementations. |
144 launch_arguments_.AppendSwitch(switches::kPpapiOutOfProcess); | 128 launch_arguments_.AppendSwitch(switches::kPpapiOutOfProcess); |
145 } | 129 } |
146 }; | 130 }; |
147 | 131 |
148 // NaCl plugin test runner. | |
149 class PPAPINaClTest : public PPAPITestBase { | |
150 public: | |
151 PPAPINaClTest() { | |
152 FilePath plugin_lib; | |
153 EXPECT_TRUE(PathService::Get(chrome::FILE_NACL_PLUGIN, &plugin_lib)); | |
154 EXPECT_TRUE(file_util::PathExists(plugin_lib)); | |
155 | |
156 // Enable running NaCl outside of the store. | |
157 launch_arguments_.AppendSwitch(switches::kEnableNaCl); | |
158 } | |
159 | |
160 // Append the correct mode and testcase string | |
161 std::string BuildQuery(const std::string& base, | |
162 const std::string& test_case) { | |
163 return StringPrintf("%smode=nacl&testcase=%s", base.c_str(), | |
164 test_case.c_str()); | |
165 } | |
166 }; | |
167 | |
168 | |
169 // Use these macros to run the tests for a specific interface. | 132 // Use these macros to run the tests for a specific interface. |
170 // Most interfaces should be tested with both macros. | 133 // Most interfaces should be tested with both macros. |
171 #define TEST_PPAPI_IN_PROCESS(test_name) \ | 134 #define TEST_PPAPI_IN_PROCESS(test_name) \ |
172 TEST_F(PPAPITest, test_name) { \ | 135 TEST_F(PPAPITest, test_name) { \ |
173 RunTest(#test_name); \ | 136 RunTest(#test_name); \ |
174 } | 137 } |
175 #define TEST_PPAPI_OUT_OF_PROCESS(test_name) \ | 138 #define TEST_PPAPI_OUT_OF_PROCESS(test_name) \ |
176 TEST_F(OutOfProcessPPAPITest, test_name) { \ | 139 TEST_F(OutOfProcessPPAPITest, test_name) { \ |
177 RunTest(#test_name); \ | 140 RunTest(#test_name); \ |
178 } | 141 } |
179 | 142 |
180 // Similar macros that test over HTTP. | 143 // Similar macros that test over HTTP. |
181 #define TEST_PPAPI_IN_PROCESS_VIA_HTTP(test_name) \ | 144 #define TEST_PPAPI_IN_PROCESS_VIA_HTTP(test_name) \ |
182 TEST_F(PPAPITest, test_name) { \ | 145 TEST_F(PPAPITest, test_name) { \ |
183 RunTestViaHTTP(#test_name); \ | 146 RunTestViaHTTP(#test_name); \ |
184 } | 147 } |
185 #define TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(test_name) \ | 148 #define TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(test_name) \ |
186 TEST_F(OutOfProcessPPAPITest, test_name) { \ | 149 TEST_F(OutOfProcessPPAPITest, test_name) { \ |
187 RunTestViaHTTP(#test_name); \ | 150 RunTestViaHTTP(#test_name); \ |
188 } | 151 } |
189 | 152 |
190 | 153 |
191 // NaCl based PPAPI tests | |
192 #define TEST_PPAPI_NACL_VIA_HTTP(test_name) \ | |
193 TEST_F(PPAPINaClTest, test_name) { \ | |
194 RunTestViaHTTP(#test_name); \ | |
195 } | |
196 | |
197 // | 154 // |
198 // Interface tests. | 155 // Interface tests. |
199 // | 156 // |
200 | 157 |
201 TEST_PPAPI_IN_PROCESS(Broker) | 158 TEST_PPAPI_IN_PROCESS(Broker) |
202 TEST_PPAPI_OUT_OF_PROCESS(Broker) | 159 TEST_PPAPI_OUT_OF_PROCESS(Broker) |
203 | 160 |
204 TEST_PPAPI_IN_PROCESS(Core) | 161 TEST_PPAPI_IN_PROCESS(Core) |
205 TEST_PPAPI_OUT_OF_PROCESS(Core) | 162 TEST_PPAPI_OUT_OF_PROCESS(Core) |
206 | 163 |
207 TEST_PPAPI_IN_PROCESS(CursorControl) | 164 TEST_PPAPI_IN_PROCESS(CursorControl) |
208 TEST_PPAPI_OUT_OF_PROCESS(CursorControl) | 165 TEST_PPAPI_OUT_OF_PROCESS(CursorControl) |
209 TEST_PPAPI_NACL_VIA_HTTP(CursorControl) | |
210 | 166 |
211 TEST_PPAPI_IN_PROCESS(Instance) | 167 TEST_PPAPI_IN_PROCESS(Instance) |
212 // http://crbug.com/91729 | 168 // http://crbug.com/91729 |
213 TEST_PPAPI_OUT_OF_PROCESS(DISABLED_Instance) | 169 TEST_PPAPI_OUT_OF_PROCESS(DISABLED_Instance) |
214 | 170 |
215 TEST_PPAPI_IN_PROCESS(Graphics2D) | 171 TEST_PPAPI_IN_PROCESS(Graphics2D) |
216 TEST_PPAPI_OUT_OF_PROCESS(Graphics2D) | 172 TEST_PPAPI_OUT_OF_PROCESS(Graphics2D) |
217 TEST_PPAPI_NACL_VIA_HTTP(Graphics2D) | |
218 | 173 |
219 TEST_PPAPI_IN_PROCESS(ImageData) | 174 TEST_PPAPI_IN_PROCESS(ImageData) |
220 TEST_PPAPI_OUT_OF_PROCESS(ImageData) | 175 TEST_PPAPI_OUT_OF_PROCESS(ImageData) |
221 TEST_PPAPI_NACL_VIA_HTTP(ImageData) | |
222 | 176 |
223 TEST_PPAPI_IN_PROCESS(Buffer) | 177 TEST_PPAPI_IN_PROCESS(Buffer) |
224 TEST_PPAPI_OUT_OF_PROCESS(Buffer) | 178 TEST_PPAPI_OUT_OF_PROCESS(Buffer) |
225 | 179 |
226 TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLLoader) | 180 TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLLoader) |
| 181 |
227 // http://crbug.com/89961 | 182 // http://crbug.com/89961 |
228 #if defined(OS_WIN) | 183 #if defined(OS_WIN) |
229 // It often takes too long time (and fails otherwise) on Windows. | 184 // It often takes too long time (and fails otherwise) on Windows. |
230 #define MAYBE_URLLoader DISABLED_URLLoader | 185 #define MAYBE_URLLoader DISABLED_URLLoader |
231 #else | 186 #else |
232 #define MAYBE_URLLoader FAILS_URLLoader | 187 #define MAYBE_URLLoader FAILS_URLLoader |
233 #endif | 188 #endif |
| 189 |
234 TEST_F(OutOfProcessPPAPITest, MAYBE_URLLoader) { | 190 TEST_F(OutOfProcessPPAPITest, MAYBE_URLLoader) { |
235 RunTestViaHTTP("URLLoader"); | 191 RunTestViaHTTP("URLLoader"); |
236 } | 192 } |
237 | 193 |
238 | |
239 | |
240 TEST_PPAPI_IN_PROCESS(PaintAggregator) | 194 TEST_PPAPI_IN_PROCESS(PaintAggregator) |
241 TEST_PPAPI_OUT_OF_PROCESS(PaintAggregator) | 195 TEST_PPAPI_OUT_OF_PROCESS(PaintAggregator) |
242 TEST_PPAPI_NACL_VIA_HTTP(PaintAggregator) | |
243 | 196 |
244 TEST_PPAPI_IN_PROCESS(Scrollbar) | 197 TEST_PPAPI_IN_PROCESS(Scrollbar) |
245 // http://crbug.com/89961 | 198 // http://crbug.com/89961 |
246 TEST_F(OutOfProcessPPAPITest, FAILS_Scrollbar) { | 199 TEST_F(OutOfProcessPPAPITest, FAILS_Scrollbar) { |
247 RunTest("Scrollbar"); | 200 RunTest("Scrollbar"); |
248 } | 201 } |
249 TEST_PPAPI_NACL_VIA_HTTP(Scrollbar) | |
250 | 202 |
251 TEST_PPAPI_IN_PROCESS(URLUtil) | 203 TEST_PPAPI_IN_PROCESS(URLUtil) |
252 TEST_PPAPI_OUT_OF_PROCESS(URLUtil) | 204 TEST_PPAPI_OUT_OF_PROCESS(URLUtil) |
253 | 205 |
254 TEST_PPAPI_IN_PROCESS(CharSet) | 206 TEST_PPAPI_IN_PROCESS(CharSet) |
255 TEST_PPAPI_OUT_OF_PROCESS(CharSet) | 207 TEST_PPAPI_OUT_OF_PROCESS(CharSet) |
256 | 208 |
257 TEST_PPAPI_IN_PROCESS(Crypto) | 209 TEST_PPAPI_IN_PROCESS(Crypto) |
258 TEST_PPAPI_OUT_OF_PROCESS(Crypto) | 210 TEST_PPAPI_OUT_OF_PROCESS(Crypto) |
259 | 211 |
260 TEST_PPAPI_IN_PROCESS(Var) | 212 TEST_PPAPI_IN_PROCESS(Var) |
261 // http://crbug.com/89961 | 213 // http://crbug.com/89961 |
262 TEST_F(OutOfProcessPPAPITest, FAILS_Var) { | 214 TEST_F(OutOfProcessPPAPITest, FAILS_Var) { |
263 RunTest("Var"); | 215 RunTest("Var"); |
264 } | 216 } |
265 TEST_PPAPI_NACL_VIA_HTTP(Var) | |
266 | 217 |
267 TEST_PPAPI_IN_PROCESS(VarDeprecated) | 218 TEST_PPAPI_IN_PROCESS(VarDeprecated) |
268 // Disabled because it times out: http://crbug.com/89961 | 219 // Disabled because it times out: http://crbug.com/89961 |
269 //TEST_PPAPI_OUT_OF_PROCESS(VarDeprecated) | 220 //TEST_PPAPI_OUT_OF_PROCESS(VarDeprecated) |
270 | 221 |
271 // Windows defines 'PostMessage', so we have to undef it. | 222 // Windows defines 'PostMessage', so we have to undef it. |
272 #ifdef PostMessage | 223 #ifdef PostMessage |
273 #undef PostMessage | 224 #undef PostMessage |
274 #endif | 225 #endif |
275 TEST_PPAPI_IN_PROCESS(PostMessage_SendInInit) | 226 TEST_PPAPI_IN_PROCESS(PostMessage_SendInInit) |
276 TEST_PPAPI_IN_PROCESS(PostMessage_SendingData) | 227 TEST_PPAPI_IN_PROCESS(PostMessage_SendingData) |
277 TEST_PPAPI_IN_PROCESS(PostMessage_MessageEvent) | 228 TEST_PPAPI_IN_PROCESS(PostMessage_MessageEvent) |
278 TEST_PPAPI_IN_PROCESS(PostMessage_NoHandler) | 229 TEST_PPAPI_IN_PROCESS(PostMessage_NoHandler) |
279 TEST_PPAPI_IN_PROCESS(PostMessage_ExtraParam) | 230 TEST_PPAPI_IN_PROCESS(PostMessage_ExtraParam) |
280 TEST_PPAPI_OUT_OF_PROCESS(PostMessage_SendInInit) | 231 TEST_PPAPI_OUT_OF_PROCESS(PostMessage_SendInInit) |
281 TEST_PPAPI_OUT_OF_PROCESS(PostMessage_SendingData) | 232 TEST_PPAPI_OUT_OF_PROCESS(PostMessage_SendingData) |
282 TEST_PPAPI_OUT_OF_PROCESS(PostMessage_MessageEvent) | 233 TEST_PPAPI_OUT_OF_PROCESS(PostMessage_MessageEvent) |
283 TEST_PPAPI_OUT_OF_PROCESS(PostMessage_NoHandler) | 234 TEST_PPAPI_OUT_OF_PROCESS(PostMessage_NoHandler) |
284 TEST_PPAPI_OUT_OF_PROCESS(PostMessage_ExtraParam) | 235 TEST_PPAPI_OUT_OF_PROCESS(PostMessage_ExtraParam) |
285 #if !defined(OS_WIN) | 236 #if !defined(OS_WIN) |
286 // Times out on Windows XP: http://crbug.com/95557 | 237 // Times out on Windows XP: http://crbug.com/95557 |
287 TEST_PPAPI_OUT_OF_PROCESS(PostMessage_NonMainThread) | 238 TEST_PPAPI_OUT_OF_PROCESS(PostMessage_NonMainThread) |
288 #endif | 239 #endif |
289 | 240 |
290 TEST_PPAPI_IN_PROCESS(Memory) | 241 TEST_PPAPI_IN_PROCESS(Memory) |
291 TEST_PPAPI_OUT_OF_PROCESS(Memory) | 242 TEST_PPAPI_OUT_OF_PROCESS(Memory) |
292 TEST_PPAPI_NACL_VIA_HTTP(Memory) | |
293 | 243 |
294 TEST_PPAPI_IN_PROCESS(VideoDecoder) | 244 TEST_PPAPI_IN_PROCESS(VideoDecoder) |
295 TEST_PPAPI_OUT_OF_PROCESS(VideoDecoder) | 245 TEST_PPAPI_OUT_OF_PROCESS(VideoDecoder) |
296 | 246 |
297 // http://crbug.com/90039 and http://crbug.com/83443 (Mac) | 247 // http://crbug.com/90039 and http://crbug.com/83443 (Mac) |
298 TEST_F(PPAPITest, FAILS_FileIO) { | 248 TEST_F(PPAPITest, FAILS_FileIO) { |
299 RunTestViaHTTP("FileIO"); | 249 RunTestViaHTTP("FileIO"); |
300 } | 250 } |
301 // http://crbug.com/101154 | 251 // http://crbug.com/101154 |
302 TEST_F(OutOfProcessPPAPITest, DISABLED_FileIO) { | 252 TEST_F(OutOfProcessPPAPITest, DISABLED_FileIO) { |
303 RunTestViaHTTP("FileIO"); | 253 RunTestViaHTTP("FileIO"); |
304 } | 254 } |
305 TEST_PPAPI_NACL_VIA_HTTP(DISABLED_FileIO) | |
306 | |
307 | 255 |
308 TEST_PPAPI_IN_PROCESS_VIA_HTTP(FileRef) | 256 TEST_PPAPI_IN_PROCESS_VIA_HTTP(FileRef) |
309 // Disabled because it times out: http://crbug.com/89961 | 257 // Disabled because it times out: http://crbug.com/89961 |
310 //TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(FileRef) | 258 //TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(FileRef) |
311 TEST_PPAPI_NACL_VIA_HTTP(FileRef) | |
312 | |
313 | 259 |
314 TEST_PPAPI_IN_PROCESS_VIA_HTTP(FileSystem) | 260 TEST_PPAPI_IN_PROCESS_VIA_HTTP(FileSystem) |
315 TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(FileSystem) | 261 TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(FileSystem) |
316 TEST_PPAPI_NACL_VIA_HTTP(FileSystem) | |
317 | 262 |
318 // http://crbug.com/96767 and 104384 for aura. | 263 // http://crbug.com/96767 and 104384 for aura. |
319 #if !defined(OS_MACOSX) && !defined(USE_AURA) | 264 #if !defined(OS_MACOSX) && !defined(USE_AURA) |
320 #define MAYBE_FlashFullscreen FLAKY_FlashFullscreen | 265 #define MAYBE_FlashFullscreen FLAKY_FlashFullscreen |
321 #define MAYBE_FlashFullscreen FLAKY_FlashFullscreen | 266 #define MAYBE_FlashFullscreen FLAKY_FlashFullscreen |
322 #else | 267 #else |
323 #define MAYBE_FlashFullscreen DISABLED_FlashFullscreen | 268 #define MAYBE_FlashFullscreen DISABLED_FlashFullscreen |
324 #define MAYBE_FlashFullscreen DISABLED_FlashFullscreen | 269 #define MAYBE_FlashFullscreen DISABLED_FlashFullscreen |
325 #endif | 270 #endif |
326 | 271 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 RunTest("UMA"); | 324 RunTest("UMA"); |
380 } | 325 } |
381 | 326 |
382 TEST_PPAPI_IN_PROCESS(NetAddressPrivate) | 327 TEST_PPAPI_IN_PROCESS(NetAddressPrivate) |
383 TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate) | 328 TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate) |
384 | 329 |
385 // PPB_TCPSocket_Private currently isn't supported in-process. | 330 // PPB_TCPSocket_Private currently isn't supported in-process. |
386 TEST_F(OutOfProcessPPAPITest, TCPSocketPrivate) { | 331 TEST_F(OutOfProcessPPAPITest, TCPSocketPrivate) { |
387 RunTestViaHTTP("TCPSocketPrivate"); | 332 RunTestViaHTTP("TCPSocketPrivate"); |
388 } | 333 } |
OLD | NEW |