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

Unified Diff: media/gpu/android/media_codec_video_decoder_unittest.cc

Issue 2801823002: Use ScopedTaskEnvironment instead of MessageLoop in media unit tests. (Closed)
Patch Set: 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
« no previous file with comments | « media/cdm/cdm_adapter_unittest.cc ('k') | media/gpu/ipc/service/gpu_jpeg_decode_accelerator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/android/media_codec_video_decoder_unittest.cc
diff --git a/media/gpu/android/media_codec_video_decoder_unittest.cc b/media/gpu/android/media_codec_video_decoder_unittest.cc
index 7ce5e5da15f02c737c47afbeb0808645f7589389..826386f406ca22c026fb6a1438c1428ec14034de 100644
--- a/media/gpu/android/media_codec_video_decoder_unittest.cc
+++ b/media/gpu/android/media_codec_video_decoder_unittest.cc
@@ -2,11 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "media/gpu/android/media_codec_video_decoder.h"
#include "base/bind.h"
#include "base/run_loop.h"
+#include "base/test/scoped_task_environment.h"
#include "media/base/android/media_codec_util.h"
#include "media/base/test_helpers.h"
-#include "media/gpu/android/media_codec_video_decoder.h"
#include "testing/gtest/include/gtest/gtest.h"
#define SKIP_IF_MEDIA_CODEC_IS_BLACKLISTED() \
@@ -42,7 +43,7 @@ class MediaCodecVideoDecoderTest : public testing::Test {
private:
MediaCodecVideoDecoder mcvd_;
- base::MessageLoop message_loop_;
+ base::test::ScopedTaskEnvironment scoped_task_environment_;
};
TEST_F(MediaCodecVideoDecoderTest, DestructWithoutInit) {
« no previous file with comments | « media/cdm/cdm_adapter_unittest.cc ('k') | media/gpu/ipc/service/gpu_jpeg_decode_accelerator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698