diff options
author | skyostil <skyostil@chromium.org> | 2015-04-29 02:59:43 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-29 10:00:09 +0000 |
commit | f97a122208d5bd48d0200a83a585f005e8015353 (patch) | |
tree | 73bba76cd3d2a7f56fd683f5544f290148588f62 /media | |
parent | e7d6799e93c88c89906f59d16b23711d24e04b29 (diff) | |
download | chromium_src-f97a122208d5bd48d0200a83a585f005e8015353.zip chromium_src-f97a122208d5bd48d0200a83a585f005e8015353.tar.gz chromium_src-f97a122208d5bd48d0200a83a585f005e8015353.tar.bz2 |
Add task runners to more tests
This patch modifies a number of tests to have a more realistic threading
set-up by either:
a) adding a TestBrowserThreadBundle
b) constructing any existing TestBrowserThreadBundle earlier or
c) adding a MessageLoop as appropriate.
This makes it possible to later migrate base/ from MessageLoopProxy
over to ThreadTaskRunnerHandle, which requires an active task runner on
the current thread.
BUG=465354, 481632
TBR=tommi@chromium.org
Review URL: https://codereview.chromium.org/1105373002
Cr-Commit-Position: refs/heads/master@{#327463}
Diffstat (limited to 'media')
-rw-r--r-- | media/video/capture/mac/video_capture_device_factory_mac_unittest.mm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/media/video/capture/mac/video_capture_device_factory_mac_unittest.mm b/media/video/capture/mac/video_capture_device_factory_mac_unittest.mm index 7094f3d..ee7b880 100644 --- a/media/video/capture/mac/video_capture_device_factory_mac_unittest.mm +++ b/media/video/capture/mac/video_capture_device_factory_mac_unittest.mm @@ -3,7 +3,7 @@ // found in the LICENSE file. #include "base/command_line.h" -#include "base/message_loop/message_loop_proxy.h" +#include "base/message_loop/message_loop.h" #import "media/base/mac/avfoundation_glue.h" #include "media/base/media_switches.h" #include "media/video/capture/mac/video_capture_device_factory_mac.h" @@ -17,6 +17,9 @@ class VideoCaptureDeviceFactoryMacTest : public testing::Test { base::CommandLine::ForCurrentProcess()->AppendSwitch( switches::kEnableAVFoundation); } + + private: + base::MessageLoop message_loop_; }; TEST_F(VideoCaptureDeviceFactoryMacTest, ListDevicesAVFoundation) { |