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

Unified Diff: mojo/system/test_utils.h

Issue 488003003: Add ChannelProxy benchmark to ipc_perftests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Landing. Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/system/remote_message_pipe_unittest.cc ('k') | mojo/system/test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/test_utils.h
diff --git a/mojo/system/test_utils.h b/mojo/system/test_utils.h
index 8c0609f42b5af648622c37c5f175629e6dae0a6b..80c2930a8de06a3a35aa34d1815ce3aa91b04cc1 100644
--- a/mojo/system/test_utils.h
+++ b/mojo/system/test_utils.h
@@ -54,41 +54,6 @@ class Stopwatch {
DISALLOW_COPY_AND_ASSIGN(Stopwatch);
};
-// TestIOThread ----------------------------------------------------------------
-
-class TestIOThread {
- public:
- enum Mode { kAutoStart, kManualStart };
- explicit TestIOThread(Mode mode);
- // Stops the I/O thread if necessary.
- ~TestIOThread();
-
- // |Start()|/|Stop()| should only be called from the main (creation) thread.
- // After |Stop()|, |Start()| may be called again to start a new I/O thread.
- // |Stop()| may be called even when the I/O thread is not started.
- void Start();
- void Stop();
-
- void PostTask(const tracked_objects::Location& from_here,
- const base::Closure& task);
- void PostTaskAndWait(const tracked_objects::Location& from_here,
- const base::Closure& task);
-
- base::MessageLoopForIO* message_loop() {
- return static_cast<base::MessageLoopForIO*>(io_thread_.message_loop());
- }
-
- scoped_refptr<base::TaskRunner> task_runner() {
- return message_loop()->message_loop_proxy();
- }
-
- private:
- base::Thread io_thread_;
- bool io_thread_started_;
-
- DISALLOW_COPY_AND_ASSIGN(TestIOThread);
-};
-
} // namespace test
} // namespace system
} // namespace mojo
« no previous file with comments | « mojo/system/remote_message_pipe_unittest.cc ('k') | mojo/system/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698