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

Unified Diff: runtime/vm/port_test.cc

Issue 9141005: Change the thread interface in runtime/platform and use it starting all threads (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed Thread::Join as suggested by iposva@ Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
« runtime/platform/thread_win.cc ('K') | « runtime/vm/message_queue_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/port_test.cc
diff --git a/runtime/vm/port_test.cc b/runtime/vm/port_test.cc
index 3ffc81bed87afbefbc86ad496d315b62b96887ef..c256309b966d8dd9d7b1fe72ed3dfea90fdf2e4d 100644
--- a/runtime/vm/port_test.cc
+++ b/runtime/vm/port_test.cc
@@ -235,8 +235,7 @@ void ThreadedPort_start(uword parameter) {
TEST_CASE(ThreadedPort) {
intptr_t local = PortMap::CreatePort();
- Thread* thr = new Thread(ThreadedPort_start, local);
- EXPECT(thr != NULL);
+ Thread::Start(ThreadedPort_start, local);
PortMessage* msg = NextMessage();
EXPECT_EQ(local, msg->dest_port());
« runtime/platform/thread_win.cc ('K') | « runtime/vm/message_queue_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698