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

Unified Diff: content/browser/media/capture/audio_mirroring_manager_unittest.cc

Issue 2487073005: Remove direct usage of BrowserThreadImpl in tests (Closed)
Patch Set: The RDHImpl is actually not even necessary in ResourceSchedulerTest, removed. Created 4 years, 1 month 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: content/browser/media/capture/audio_mirroring_manager_unittest.cc
diff --git a/content/browser/media/capture/audio_mirroring_manager_unittest.cc b/content/browser/media/capture/audio_mirroring_manager_unittest.cc
index 2b883521e5cb2594b9c3433ccd2218fc6a008796..94e796fd49d2b2d087b43629553f1898a61c5290 100644
--- a/content/browser/media/capture/audio_mirroring_manager_unittest.cc
+++ b/content/browser/media/capture/audio_mirroring_manager_unittest.cc
@@ -10,9 +10,8 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/macros.h"
-#include "base/message_loop/message_loop.h"
#include "base/synchronization/waitable_event.h"
-#include "content/browser/browser_thread_impl.h"
+#include "content/public/test/test_browser_thread_bundle.h"
#include "media/base/audio_parameters.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -108,9 +107,10 @@ class AudioMirroringManagerTest : public testing::Test {
typedef AudioMirroringManager::StreamRoutes StreamRoutes;
AudioMirroringManagerTest()
- : io_thread_(BrowserThread::IO, &message_loop_),
- params_(AudioParameters::AUDIO_FAKE, media::CHANNEL_LAYOUT_STEREO,
- AudioParameters::kAudioCDSampleRate, 16,
+ : params_(AudioParameters::AUDIO_FAKE,
+ media::CHANNEL_LAYOUT_STEREO,
+ AudioParameters::kAudioCDSampleRate,
+ 16,
AudioParameters::kAudioCDSampleRate / 10) {}
MockDiverter* CreateStream(int render_process_id,
@@ -207,8 +207,7 @@ class AudioMirroringManagerTest : public testing::Test {
}
private:
- base::MessageLoopForIO message_loop_;
- BrowserThreadImpl io_thread_;
+ TestBrowserThreadBundle thread_bundle_;
AudioParameters params_;
AudioMirroringManager mirroring_manager_;

Powered by Google App Engine
This is Rietveld 408576698