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

Unified Diff: chrome/browser/media/media_internals_unittest.cc

Issue 9845033: Move the MediaObserver getter from ResourceContext to ContentBrowserClient, since we only need to s… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix dcheck 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
« no previous file with comments | « chrome/browser/media/media_internals.cc ('k') | chrome/browser/profiles/profile_io_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/media_internals_unittest.cc
===================================================================
--- chrome/browser/media/media_internals_unittest.cc (revision 128803)
+++ chrome/browser/media/media_internals_unittest.cc (working copy)
@@ -5,7 +5,9 @@
#include "chrome/browser/media/media_internals.h"
#include "base/memory/scoped_ptr.h"
+#include "base/message_loop.h"
#include "chrome/browser/media/media_internals_observer.h"
+#include "content/test/test_browser_thread.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -16,6 +18,7 @@
class MediaInternalsTest : public testing::Test {
public:
+ MediaInternalsTest() : io_thread_(content::BrowserThread::IO, &loop_) {}
DictionaryValue* data() {
return &internals_->data_;
}
@@ -37,6 +40,9 @@
virtual void SetUp() {
internals_.reset(new MediaInternals());
}
+
+ MessageLoop loop_;
+ content::TestBrowserThread io_thread_;
scoped_ptr<MediaInternals> internals_;
};
« no previous file with comments | « chrome/browser/media/media_internals.cc ('k') | chrome/browser/profiles/profile_io_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698