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

Unified Diff: chrome/browser/media/webrtc/webrtc_log_util_unittest.cc

Issue 2799883003: Switch from TestBrowserThread to TestBrowserThreadBundle in chrome. (Closed)
Patch Set: fix-string Created 3 years, 8 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: chrome/browser/media/webrtc/webrtc_log_util_unittest.cc
diff --git a/chrome/browser/media/webrtc/webrtc_log_util_unittest.cc b/chrome/browser/media/webrtc/webrtc_log_util_unittest.cc
index 6bdd7debc7f316e1fbb881a280c251ea37d6220d..521a3d6c3250c29dbec5ebdeea97b13490e65996 100644
--- a/chrome/browser/media/webrtc/webrtc_log_util_unittest.cc
+++ b/chrome/browser/media/webrtc/webrtc_log_util_unittest.cc
@@ -2,22 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "chrome/browser/media/webrtc/webrtc_log_util.h"
+
#include "base/files/file_enumerator.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
-#include "base/message_loop/message_loop.h"
#include "base/time/time.h"
-#include "chrome/browser/media/webrtc/webrtc_log_util.h"
-#include "content/public/test/test_browser_thread.h"
+#include "content/public/test/test_browser_thread_bundle.h"
#include "testing/gtest/include/gtest/gtest.h"
const int kExpectedDaysToKeepLogFiles = 5;
class WebRtcLogUtilTest : public testing::Test {
public:
- WebRtcLogUtilTest()
- : file_thread_(content::BrowserThread::FILE, &message_loop_) {}
+ WebRtcLogUtilTest() = default;
void SetUp() override {
// Create three files. One with modified date as of now, one with date one
@@ -52,8 +51,7 @@ class WebRtcLogUtilTest : public testing::Test {
EXPECT_EQ(expected_files, file_counter);
}
- base::MessageLoopForUI message_loop_;
- content::TestBrowserThread file_thread_;
+ content::TestBrowserThreadBundle test_browser_thread_bundle_;
base::ScopedTempDir dir_;
};
« no previous file with comments | « chrome/browser/history/android/sqlite_cursor_unittest.cc ('k') | chrome/browser/metrics/thread_watcher_android_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698