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

Unified Diff: runtime/bin/thread_pool_test.cc

Issue 9112013: Thread pool changes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added tread pool shutdown 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
« no previous file with comments | « runtime/bin/thread_pool_macos.cc ('k') | runtime/bin/thread_pool_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/thread_pool_test.cc
diff --git a/runtime/bin/thread_pool_test.cc b/runtime/bin/thread_pool_test.cc
new file mode 100644
index 0000000000000000000000000000000000000000..1c85ef68561ec9ebc1c2938e786a0f7580fffa7e
--- /dev/null
+++ b/runtime/bin/thread_pool_test.cc
@@ -0,0 +1,19 @@
+// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+#include "bin/thread_pool.h"
+
+// TODO(sgjesse): Get rid of these #undefs
+#undef FATAL
+#undef ASSERT
+#include "vm/assert.h"
+#include "platform/globals.h"
+#include "vm/unit_test.h"
+
+
+UNIT_TEST_CASE(ThreadPoolStartStop) {
+ ThreadPool thread_pool(NULL, 10);
+ thread_pool.Start();
+ thread_pool.Shutdown();
+}
« no previous file with comments | « runtime/bin/thread_pool_macos.cc ('k') | runtime/bin/thread_pool_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698