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

Unified Diff: media/base/message_loop_factory_for_test.cc

Issue 9632024: Create video and audio decoder threads on demand. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
Index: media/base/message_loop_factory_for_test.cc
diff --git a/media/base/message_loop_factory_for_test.cc b/media/base/message_loop_factory_for_test.cc
new file mode 100644
index 0000000000000000000000000000000000000000..44897a67ced632d3ac37caf8c0d767fa66c5840e
--- /dev/null
+++ b/media/base/message_loop_factory_for_test.cc
@@ -0,0 +1,22 @@
+// Copyright (c) 2012 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 "media/base/message_loop_factory_for_test.h"
+
+namespace media {
+
+MessageLoopFactoryForTest::MessageLoopFactoryForTest(
+ MessageLoop* the_only_loop)
+ : the_only_loop_(the_only_loop) {
+}
+
+MessageLoopFactoryForTest::~MessageLoopFactoryForTest() {
+}
+
+MessageLoop* MessageLoopFactoryForTest::GetMessageLoop(
+ const std::string& name) {
+ return the_only_loop_;
+}
+
+} // namespace media

Powered by Google App Engine
This is Rietveld 408576698