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

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

Issue 1658303002: Create abstract interface for media::Pipeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove scoped_ptr pointers. Created 4 years, 10 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/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 23 matching lines...) Expand all
34 using ::testing::SaveArg; 34 using ::testing::SaveArg;
35 35
36 namespace media { 36 namespace media {
37 37
38 const char kNullVideoHash[] = "d41d8cd98f00b204e9800998ecf8427e"; 38 const char kNullVideoHash[] = "d41d8cd98f00b204e9800998ecf8427e";
39 const char kNullAudioHash[] = "0.00,0.00,0.00,0.00,0.00,0.00,"; 39 const char kNullAudioHash[] = "0.00,0.00,0.00,0.00,0.00,0.00,";
40 40
41 PipelineIntegrationTestBase::PipelineIntegrationTestBase() 41 PipelineIntegrationTestBase::PipelineIntegrationTestBase()
42 : hashing_enabled_(false), 42 : hashing_enabled_(false),
43 clockless_playback_(false), 43 clockless_playback_(false),
44 pipeline_(new Pipeline(message_loop_.task_runner(), new MediaLog())), 44 pipeline_(new PipelineImpl(message_loop_.task_runner(), new MediaLog())),
45 ended_(false), 45 ended_(false),
46 pipeline_status_(PIPELINE_OK), 46 pipeline_status_(PIPELINE_OK),
47 last_video_frame_format_(PIXEL_FORMAT_UNKNOWN), 47 last_video_frame_format_(PIXEL_FORMAT_UNKNOWN),
48 last_video_frame_color_space_(COLOR_SPACE_UNSPECIFIED), 48 last_video_frame_color_space_(COLOR_SPACE_UNSPECIFIED),
49 hardware_config_(AudioParameters(), AudioParameters()) { 49 hardware_config_(AudioParameters(), AudioParameters()) {
50 base::MD5Init(&md5_context_); 50 base::MD5Init(&md5_context_);
51 } 51 }
52 52
53 PipelineIntegrationTestBase::~PipelineIntegrationTestBase() { 53 PipelineIntegrationTestBase::~PipelineIntegrationTestBase() {
54 if (!pipeline_->IsRunning()) 54 if (!pipeline_->IsRunning())
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 DCHECK(clockless_playback_); 355 DCHECK(clockless_playback_);
356 return clockless_audio_sink_->render_time(); 356 return clockless_audio_sink_->render_time();
357 } 357 }
358 358
359 base::TimeTicks DummyTickClock::NowTicks() { 359 base::TimeTicks DummyTickClock::NowTicks() {
360 now_ += base::TimeDelta::FromSeconds(60); 360 now_ += base::TimeDelta::FromSeconds(60);
361 return now_; 361 return now_;
362 } 362 }
363 363
364 } // namespace media 364 } // namespace media
OLDNEW
« media/base/pipeline_unittest.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