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

Side by Side Diff: media/test/pipeline_integration_fuzzertest.cc

Issue 2727573005: Remove useless DCHECK; discard helper enforces invalid values. (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « media/filters/ffmpeg_demuxer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/at_exit.h" 9 #include "base/at_exit.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 28 matching lines...) Expand all
39 base::CommandLine::Init(0, nullptr); 39 base::CommandLine::Init(0, nullptr);
40 40
41 media::InitializeMediaLibrary(); 41 media::InitializeMediaLibrary();
42 42
43 media::PipelineIntegrationTestBase test; 43 media::PipelineIntegrationTestBase test;
44 44
45 test.set_encrypted_media_init_data_cb( 45 test.set_encrypted_media_init_data_cb(
46 base::Bind(&OnEncryptedMediaInitData, &test)); 46 base::Bind(&OnEncryptedMediaInitData, &test));
47 47
48 media::PipelineStatus pipeline_status = 48 media::PipelineStatus pipeline_status =
49 test.Start(data, size, media::PipelineIntegrationTestBase::kClockless); 49 test.Start(data, size,
50 media::PipelineIntegrationTestBase::kClockless |
51 media::PipelineIntegrationTestBase::kUnreliableDuration);
50 if (pipeline_status != media::PIPELINE_OK) 52 if (pipeline_status != media::PIPELINE_OK)
51 return 0; 53 return 0;
52 54
53 test.Play(); 55 test.Play();
54 pipeline_status = test.WaitUntilEndedOrError(); 56 pipeline_status = test.WaitUntilEndedOrError();
55 if (pipeline_status != media::PIPELINE_OK) 57 if (pipeline_status != media::PIPELINE_OK)
56 return 0; 58 return 0;
57 59
58 test.Seek(base::TimeDelta()); 60 test.Seek(base::TimeDelta());
59 61
60 return 0; 62 return 0;
61 } 63 }
OLDNEW
« no previous file with comments | « media/filters/ffmpeg_demuxer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698