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

Unified Diff: chrome/test/thread_test_helper.cc

Issue 7239023: Move the thread test helper to base/test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 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 | « chrome/test/thread_test_helper.h ('k') | content/browser/appcache/chrome_appcache_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/thread_test_helper.cc
diff --git a/chrome/test/thread_test_helper.cc b/chrome/test/thread_test_helper.cc
deleted file mode 100644
index 6714310b80323e9b8bf5fb3782724a79ff24c2f1..0000000000000000000000000000000000000000
--- a/chrome/test/thread_test_helper.cc
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/test/thread_test_helper.h"
-
-ThreadTestHelper::ThreadTestHelper(BrowserThread::ID thread_id)
- : test_result_(false),
- thread_id_(thread_id),
- done_event_(false, false) {
-}
-
-bool ThreadTestHelper::Run() {
- if (!BrowserThread::PostTask(thread_id_, FROM_HERE, NewRunnableMethod(
- this, &ThreadTestHelper::RunInThread))) {
- return false;
- }
- done_event_.Wait();
- return test_result_;
-}
-
-void ThreadTestHelper::RunTest() { set_test_result(true); }
-
-ThreadTestHelper::~ThreadTestHelper() {}
-
-void ThreadTestHelper::RunInThread() {
- RunTest();
- done_event_.Signal();
-}
« no previous file with comments | « chrome/test/thread_test_helper.h ('k') | content/browser/appcache/chrome_appcache_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698