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

Side by Side Diff: test/cctest/test-debug.cc

Issue 242003: Fixed some cctest flakiness on mac. (Closed)
Patch Set: Created 11 years, 3 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
« no previous file with comments | « src/debug-agent.cc ('k') | test/cctest/test-sockets.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 4504 matching lines...) Expand 10 before | Expand all | Expand 10 after
4515 i::Socket::Setup(); 4515 i::Socket::Setup();
4516 4516
4517 // Test starting and stopping the agent without any client connection. 4517 // Test starting and stopping the agent without any client connection.
4518 i::Debugger::StartAgent("test", kPort1); 4518 i::Debugger::StartAgent("test", kPort1);
4519 i::Debugger::StopAgent(); 4519 i::Debugger::StopAgent();
4520 4520
4521 // Test starting the agent, connecting a client and shutting down the agent 4521 // Test starting the agent, connecting a client and shutting down the agent
4522 // with the client connected. 4522 // with the client connected.
4523 ok = i::Debugger::StartAgent("test", kPort2); 4523 ok = i::Debugger::StartAgent("test", kPort2);
4524 CHECK(ok); 4524 CHECK(ok);
4525 i::Debugger::WaitForAgent();
4525 i::Socket* client = i::OS::CreateSocket(); 4526 i::Socket* client = i::OS::CreateSocket();
4526 ok = client->Connect("localhost", port2_str); 4527 ok = client->Connect("localhost", port2_str);
4527 CHECK(ok); 4528 CHECK(ok);
4528 i::Debugger::StopAgent(); 4529 i::Debugger::StopAgent();
4529 delete client; 4530 delete client;
4530 4531
4531 // Test starting and stopping the agent with the required port already 4532 // Test starting and stopping the agent with the required port already
4532 // occoupied. 4533 // occoupied.
4533 i::Socket* server = i::OS::CreateSocket(); 4534 i::Socket* server = i::OS::CreateSocket();
4534 server->Bind(kPort3); 4535 server->Bind(kPort3);
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after
5360 v8::Script::New( 5361 v8::Script::New(
5361 v8::String::New( 5362 v8::String::New(
5362 "function runTest(mirror) {" 5363 "function runTest(mirror) {"
5363 " return mirror.isString() && (mirror.length() == 5);" 5364 " return mirror.isString() && (mirror.length() == 5);"
5364 "}" 5365 "}"
5365 "" 5366 ""
5366 "runTest;"))->Run()); 5367 "runTest;"))->Run());
5367 v8::Handle<v8::Value> result = run_test->Call(env->Global(), 1, &obj); 5368 v8::Handle<v8::Value> result = run_test->Call(env->Global(), 1, &obj);
5368 CHECK(result->IsTrue()); 5369 CHECK(result->IsTrue());
5369 } 5370 }
OLDNEW
« no previous file with comments | « src/debug-agent.cc ('k') | test/cctest/test-sockets.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698