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

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

Issue 1909313002: Support HEVC through EME (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "media/test/pipeline_integration_test_base.h" 5 #include "media/test/pipeline_integration_test_base.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 29 matching lines...) Expand all
40 40
41 const char kNullVideoHash[] = "d41d8cd98f00b204e9800998ecf8427e"; 41 const char kNullVideoHash[] = "d41d8cd98f00b204e9800998ecf8427e";
42 const char kNullAudioHash[] = "0.00,0.00,0.00,0.00,0.00,0.00,"; 42 const char kNullAudioHash[] = "0.00,0.00,0.00,0.00,0.00,0.00,";
43 43
44 PipelineIntegrationTestBase::PipelineIntegrationTestBase() 44 PipelineIntegrationTestBase::PipelineIntegrationTestBase()
45 : hashing_enabled_(false), 45 : hashing_enabled_(false),
46 clockless_playback_(false), 46 clockless_playback_(false),
47 pipeline_(new PipelineImpl(message_loop_.task_runner(), new MediaLog())), 47 pipeline_(new PipelineImpl(message_loop_.task_runner(), new MediaLog())),
48 ended_(false), 48 ended_(false),
49 pipeline_status_(PIPELINE_OK), 49 pipeline_status_(PIPELINE_OK),
50 expected_pipeline_status_(PIPELINE_OK),
50 last_video_frame_format_(PIXEL_FORMAT_UNKNOWN), 51 last_video_frame_format_(PIXEL_FORMAT_UNKNOWN),
51 last_video_frame_color_space_(COLOR_SPACE_UNSPECIFIED), 52 last_video_frame_color_space_(COLOR_SPACE_UNSPECIFIED),
52 hardware_config_(AudioParameters(), AudioParameters()) { 53 hardware_config_(AudioParameters(), AudioParameters()) {
53 base::MD5Init(&md5_context_); 54 base::MD5Init(&md5_context_);
54 } 55 }
55 56
56 PipelineIntegrationTestBase::~PipelineIntegrationTestBase() { 57 PipelineIntegrationTestBase::~PipelineIntegrationTestBase() {
57 if (!pipeline_->IsRunning()) 58 if (!pipeline_->IsRunning())
58 return; 59 return;
59 60
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 DCHECK(clockless_playback_); 379 DCHECK(clockless_playback_);
379 return clockless_audio_sink_->render_time(); 380 return clockless_audio_sink_->render_time();
380 } 381 }
381 382
382 base::TimeTicks DummyTickClock::NowTicks() { 383 base::TimeTicks DummyTickClock::NowTicks() {
383 now_ += base::TimeDelta::FromSeconds(60); 384 now_ += base::TimeDelta::FromSeconds(60);
384 return now_; 385 return now_;
385 } 386 }
386 387
387 } // namespace media 388 } // namespace media
OLDNEW
« media/test/pipeline_integration_test.cc ('K') | « media/test/pipeline_integration_test_base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698