Chromium Code Reviews| Index: chrome/browser/ui/cocoa/tabs/alert_indicator_button_cocoa_unittest.mm |
| diff --git a/chrome/browser/ui/cocoa/tabs/alert_indicator_button_cocoa_unittest.mm b/chrome/browser/ui/cocoa/tabs/alert_indicator_button_cocoa_unittest.mm |
| index 15ed41cddc45dfb95cb78bdf8f9b94ca4fc9defa..00fafc9910b0cfa9967bcaa6b255bc0af7472344 100644 |
| --- a/chrome/browser/ui/cocoa/tabs/alert_indicator_button_cocoa_unittest.mm |
| +++ b/chrome/browser/ui/cocoa/tabs/alert_indicator_button_cocoa_unittest.mm |
| @@ -8,7 +8,7 @@ |
| #include "base/command_line.h" |
| #include "base/mac/scoped_nsobject.h" |
| -#include "base/message_loop/message_loop.h" |
| +#include "base/test/scoped_task_environment.h" |
| #import "chrome/browser/ui/cocoa/test/cocoa_test_helper.h" |
| #include "chrome/common/chrome_switches.h" |
| #include "testing/gtest/include/gtest/gtest.h" |
| @@ -34,7 +34,9 @@ namespace { |
| class AlertIndicatorButtonTest : public CocoaTest { |
| public: |
| - AlertIndicatorButtonTest() { |
| + AlertIndicatorButtonTest() |
| + : scoped_task_environment_( |
| + base::test::ScopedTaskEnvironment::MainThreadType::UI) { |
| base::CommandLine::ForCurrentProcess()->AppendSwitch( |
| std::string("--") + switches::kEnableTabAudioMuting); |
| @@ -82,7 +84,8 @@ class AlertIndicatorButtonTest : public CocoaTest { |
| } |
| base::scoped_nsobject<AlertIndicatorButton> button_; |
| - base::MessageLoopForUI message_loop_; // Needed for gfx::Animation. |
| + base::test::ScopedTaskEnvironment |
| + scoped_task_environment_; // Needed for gfx::Animation. |
|
sky
2017/04/27 22:17:46
Move the comment above the member.
fdoray
2017/05/01 17:44:59
Done.
|
| }; |
| TEST_VIEW(AlertIndicatorButtonTest, button_) |