Index: chrome/browser/ui/webui/fileicon_source_unittest.cc |
diff --git a/chrome/browser/ui/webui/fileicon_source_unittest.cc b/chrome/browser/ui/webui/fileicon_source_unittest.cc |
index a38267c901db8e9665ff90ad2d15f891db47cbf7..5ae72c24b93fa81f080f2cf4e4b0738a8bb2453d 100644 |
--- a/chrome/browser/ui/webui/fileicon_source_unittest.cc |
+++ b/chrome/browser/ui/webui/fileicon_source_unittest.cc |
@@ -2,20 +2,17 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include "chrome/browser/ui/webui/fileicon_source.h" |
#include "base/macros.h" |
#include "base/memory/ref_counted_memory.h" |
-#include "base/message_loop/message_loop.h" |
#include "build/build_config.h" |
#include "chrome/browser/icon_manager.h" |
#include "chrome/browser/profiles/profile.h" |
-#include "chrome/browser/ui/webui/fileicon_source.h" |
#include "chrome/test/base/testing_profile.h" |
-#include "content/public/test/test_browser_thread.h" |
+#include "content/public/test/test_browser_thread_bundle.h" |
#include "testing/gmock/include/gmock/gmock.h" |
#include "testing/gtest/include/gtest/gtest.h" |
-using content::BrowserThread; |
- |
namespace { |
class TestFileIconSource : public FileIconSource { |
@@ -33,18 +30,14 @@ class TestFileIconSource : public FileIconSource { |
class FileIconSourceTest : public testing::Test { |
public: |
- FileIconSourceTest() |
- : ui_thread_(BrowserThread::UI, base::MessageLoop::current()), |
- file_thread_(BrowserThread::FILE, base::MessageLoop::current()) {} |
+ FileIconSourceTest() = default; |
static TestFileIconSource* CreateFileIconSource() { |
return new TestFileIconSource(); |
} |
private: |
- base::MessageLoopForUI loop_; |
- content::TestBrowserThread ui_thread_; |
- content::TestBrowserThread file_thread_; |
+ content::TestBrowserThreadBundle test_browser_thread_bundle_; |
}; |
const struct FetchFileIconExpectation { |