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

Side by Side Diff: chrome/worker/worker_uitest.cc

Issue 3119003: Merge 53027 - Call rand_s() in a worker process before entering the sandbox.... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/472/src/
Patch Set: Created 10 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/worker/worker_main.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_path.h" 5 #include "base/file_path.h"
6 #include "base/string_util.h" 6 #include "base/string_util.h"
7 #include "chrome/app/chrome_dll_resource.h" 7 #include "chrome/app/chrome_dll_resource.h"
8 #include "chrome/browser/worker_host/worker_service.h" 8 #include "chrome/browser/worker_host/worker_service.h"
9 #include "chrome/common/chrome_switches.h" 9 #include "chrome/common/chrome_switches.h"
10 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 for (size_t i = 0; i < arraysize(kLayoutTestFiles); ++i) 418 for (size_t i = 0; i < arraysize(kLayoutTestFiles); ++i)
419 RunLayoutTest(kLayoutTestFiles[i], kHttpPort); 419 RunLayoutTest(kLayoutTestFiles[i], kHttpPort);
420 StopHttpServer(); 420 StopHttpServer();
421 } 421 }
422 422
423 // Flaky, see http://crbug.com/49381 423 // Flaky, see http://crbug.com/49381
424 TEST_F(WorkerTest, FLAKY_WorkerWebSocketLayoutTests) { 424 TEST_F(WorkerTest, FLAKY_WorkerWebSocketLayoutTests) {
425 static const char* kLayoutTestFiles[] = { 425 static const char* kLayoutTestFiles[] = {
426 "worker-simple.html", 426 "worker-simple.html",
427 "shared-worker-simple.html", 427 "shared-worker-simple.html",
428 "worker-handshake-challenge-randomness.html"
428 }; 429 };
429 430
430 FilePath websocket_test_dir; 431 FilePath websocket_test_dir;
431 websocket_test_dir = websocket_test_dir.AppendASCII("websocket"); 432 websocket_test_dir = websocket_test_dir.AppendASCII("websocket");
432 websocket_test_dir = websocket_test_dir.AppendASCII("tests"); 433 websocket_test_dir = websocket_test_dir.AppendASCII("tests");
433 434
434 FilePath worker_test_dir; 435 FilePath worker_test_dir;
435 worker_test_dir = worker_test_dir.AppendASCII("workers"); 436 worker_test_dir = worker_test_dir.AppendASCII("workers");
436 InitializeForLayoutTest(websocket_test_dir, worker_test_dir, kWebSocketPort); 437 InitializeForLayoutTest(websocket_test_dir, worker_test_dir, kWebSocketPort);
437 test_case_dir_ = test_case_dir_.AppendASCII("websocket"); 438 test_case_dir_ = test_case_dir_.AppendASCII("websocket");
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 std::string value = WaitUntilCookieNonEmpty(tab.get(), url, 664 std::string value = WaitUntilCookieNonEmpty(tab.get(), url,
664 kTestCompleteCookie, action_max_timeout_ms()); 665 kTestCompleteCookie, action_max_timeout_ms());
665 ASSERT_STREQ(kTestCompleteSuccess, value.c_str()); 666 ASSERT_STREQ(kTestCompleteSuccess, value.c_str());
666 ASSERT_TRUE(WaitForProcessCountToBe(2, max_workers_per_tab+1)); 667 ASSERT_TRUE(WaitForProcessCountToBe(2, max_workers_per_tab+1));
667 } 668 }
668 669
669 // TODO(ojan): Started failing with r52393. WebKit merge 63272:63323. 670 // TODO(ojan): Started failing with r52393. WebKit merge 63272:63323.
670 TEST_F(WorkerTest, FAILS_OpenDatabaseSyncInputs) { 671 TEST_F(WorkerTest, FAILS_OpenDatabaseSyncInputs) {
671 RunWorkerStorageLayoutTest("open-database-sync-inputs.html"); 672 RunWorkerStorageLayoutTest("open-database-sync-inputs.html");
672 } 673 }
OLDNEW
« no previous file with comments | « chrome/worker/worker_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698