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

Unified Diff: media/filters/vpx_video_decoder_fuzzertest.cc

Issue 2196453003: Do not use deprecated MessageLoop methods in //media/filters:media_vpx_video_decoder_fuzzer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/vpx_video_decoder_fuzzertest.cc
diff --git a/media/filters/vpx_video_decoder_fuzzertest.cc b/media/filters/vpx_video_decoder_fuzzertest.cc
index 4d5dcefcc0eaa71485ec1da9b2835d1874b8a3ea..078356b22e116bb57ab4fba55b349a80b14c5fbf 100644
--- a/media/filters/vpx_video_decoder_fuzzertest.cc
+++ b/media/filters/vpx_video_decoder_fuzzertest.cc
@@ -23,7 +23,7 @@ struct Env {
}
base::AtExitManager at_exit_manager;
- base::MessageLoop loop;
+ base::MessageLoop message_loop;
jrummell 2016/07/29 23:10:52 This isn't used anywhere, so is it still needed?
Robert Sesek 2016/07/29 23:16:06 Yes. It's the MessageLoop that backs the RunLoop.
};
Env* env = new Env();
@@ -56,14 +56,15 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
EmptyExtraData(), Unencrypted());
VpxVideoDecoder decoder;
+ base::RunLoop run_loop;
decoder.Initialize(config, true /* low_delay */, nullptr /* cdm_context */,
base::Bind(&OnInitDone), base::Bind(&OnOutputComplete));
- env->loop.RunUntilIdle();
+ run_loop.RunUntilIdle();
auto buffer = DecoderBuffer::CopyFrom(data, size);
decoder.Decode(buffer, base::Bind(&OnDecodeComplete));
- env->loop.RunUntilIdle();
+ run_loop.RunUntilIdle();
return 0;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698