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

Side by Side Diff: chrome/test/ui/ppapi_uitest.cc

Issue 8555002: Added NaCl proxy for TCP/UDP (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed issues. Created 9 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 (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" 9 #include "content/browser/plugin_service.h"
10 #include "content/public/common/content_switches.h" 10 #include "content/public/common/content_switches.h"
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // NaCl plugin test runner. 192 // NaCl plugin test runner.
193 class PPAPINaClTest : public PPAPITestBase { 193 class PPAPINaClTest : public PPAPITestBase {
194 public: 194 public:
195 PPAPINaClTest() { 195 PPAPINaClTest() {
196 FilePath plugin_lib; 196 FilePath plugin_lib;
197 EXPECT_TRUE(PathService::Get(chrome::FILE_NACL_PLUGIN, &plugin_lib)); 197 EXPECT_TRUE(PathService::Get(chrome::FILE_NACL_PLUGIN, &plugin_lib));
198 EXPECT_TRUE(file_util::PathExists(plugin_lib)); 198 EXPECT_TRUE(file_util::PathExists(plugin_lib));
199 199
200 // Enable running NaCl outside of the store. 200 // Enable running NaCl outside of the store.
201 launch_arguments_.AppendSwitch(switches::kEnableNaCl); 201 launch_arguments_.AppendSwitch(switches::kEnableNaCl);
202 launch_arguments_.AppendSwitchASCII(switches::kAllowNaClSocketAPI,
203 "127.0.0.1");
202 } 204 }
203 205
204 // Append the correct mode and testcase string 206 // Append the correct mode and testcase string
205 std::string BuildQuery(const std::string& base, 207 std::string BuildQuery(const std::string& base,
206 const std::string& test_case) { 208 const std::string& test_case) {
207 return StringPrintf("%smode=nacl&testcase=%s", base.c_str(), 209 return StringPrintf("%smode=nacl&testcase=%s", base.c_str(),
208 test_case.c_str()); 210 test_case.c_str());
209 } 211 }
210 }; 212 };
211 213
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 TEST_PPAPI_OUT_OF_PROCESS(Graphics2D) 286 TEST_PPAPI_OUT_OF_PROCESS(Graphics2D)
285 TEST_PPAPI_NACL_VIA_HTTP(Graphics2D) 287 TEST_PPAPI_NACL_VIA_HTTP(Graphics2D)
286 288
287 TEST_PPAPI_IN_PROCESS(ImageData) 289 TEST_PPAPI_IN_PROCESS(ImageData)
288 TEST_PPAPI_OUT_OF_PROCESS(ImageData) 290 TEST_PPAPI_OUT_OF_PROCESS(ImageData)
289 TEST_PPAPI_NACL_VIA_HTTP(ImageData) 291 TEST_PPAPI_NACL_VIA_HTTP(ImageData)
290 292
291 TEST_PPAPI_IN_PROCESS(Buffer) 293 TEST_PPAPI_IN_PROCESS(Buffer)
292 TEST_PPAPI_OUT_OF_PROCESS(Buffer) 294 TEST_PPAPI_OUT_OF_PROCESS(Buffer)
293 295
296 TEST_PPAPI_OUT_OF_PROCESS(TCPSocketPrivateShared)
297 TEST_PPAPI_NACL_VIA_HTTP(TCPSocketPrivateShared)
298
299 TEST_PPAPI_OUT_OF_PROCESS(UDPSocketPrivateShared)
300 TEST_PPAPI_NACL_VIA_HTTP(UDPSocketPrivateShared)
301
294 TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLLoader) 302 TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLLoader)
295 // http://crbug.com/89961 303 // http://crbug.com/89961
296 #if defined(OS_WIN) 304 #if defined(OS_WIN)
297 // It often takes too long time (and fails otherwise) on Windows. 305 // It often takes too long time (and fails otherwise) on Windows.
298 #define MAYBE_URLLoader DISABLED_URLLoader 306 #define MAYBE_URLLoader DISABLED_URLLoader
299 #else 307 #else
300 #define MAYBE_URLLoader FAILS_URLLoader 308 #define MAYBE_URLLoader FAILS_URLLoader
301 #endif 309 #endif
302 TEST_F(OutOfProcessPPAPITest, MAYBE_URLLoader) { 310 TEST_F(OutOfProcessPPAPITest, MAYBE_URLLoader) {
303 RunTestViaHTTP("URLLoader"); 311 RunTestViaHTTP("URLLoader");
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 TEST_PPAPI_OUT_OF_PROCESS(Flash_MessageLoop) 483 TEST_PPAPI_OUT_OF_PROCESS(Flash_MessageLoop)
476 TEST_PPAPI_OUT_OF_PROCESS(Flash_GetLocalTimeZoneOffset) 484 TEST_PPAPI_OUT_OF_PROCESS(Flash_GetLocalTimeZoneOffset)
477 TEST_PPAPI_OUT_OF_PROCESS(Flash_GetCommandLineArgs) 485 TEST_PPAPI_OUT_OF_PROCESS(Flash_GetCommandLineArgs)
478 486
479 TEST_PPAPI_IN_PROCESS(WebSocket_InvalidConnect) 487 TEST_PPAPI_IN_PROCESS(WebSocket_InvalidConnect)
480 TEST_PPAPI_IN_PROCESS(WebSocket_IsWebSocket) 488 TEST_PPAPI_IN_PROCESS(WebSocket_IsWebSocket)
481 TEST_PPAPI_IN_PROCESS_WITH_WS(WebSocket_ValidConnect) 489 TEST_PPAPI_IN_PROCESS_WITH_WS(WebSocket_ValidConnect)
482 TEST_PPAPI_IN_PROCESS_WITH_WS(WebSocket_TextSendReceive) 490 TEST_PPAPI_IN_PROCESS_WITH_WS(WebSocket_TextSendReceive)
483 491
484 #endif // ADDRESS_SANITIZER 492 #endif // ADDRESS_SANITIZER
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698