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

Side by Side Diff: media/cast/test/encode_decode_test.cc

Issue 210303003: Cast: Remove LoggingStats in favor of event subscribers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // Joint encoder and decoder testing. 5 // Joint encoder and decoder testing.
6 // These tests operate directly on the VP8 encoder and decoder, not the 6 // These tests operate directly on the VP8 encoder and decoder, not the
7 // transport layer, and are targeted at validating the bit stream. 7 // transport layer, and are targeted at validating the bit stream.
8 8
9 #include <gtest/gtest.h> 9 #include <gtest/gtest.h>
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 protected: 71 protected:
72 EncodeDecodeTest() 72 EncodeDecodeTest()
73 : testing_clock_(new base::SimpleTestTickClock()), 73 : testing_clock_(new base::SimpleTestTickClock()),
74 task_runner_(new test::FakeSingleThreadTaskRunner(testing_clock_)), 74 task_runner_(new test::FakeSingleThreadTaskRunner(testing_clock_)),
75 // CastEnvironment will only be used by the vp8 decoder; Enable only the 75 // CastEnvironment will only be used by the vp8 decoder; Enable only the
76 // video and main threads. 76 // video and main threads.
77 cast_environment_(new CastEnvironment( 77 cast_environment_(new CastEnvironment(
78 scoped_ptr<base::TickClock>(testing_clock_).Pass(), 78 scoped_ptr<base::TickClock>(testing_clock_).Pass(),
79 task_runner_, 79 task_runner_,
80 NULL, 80 NULL,
81 task_runner_, 81 task_runner_)),
82 GetDefaultCastReceiverLoggingConfig())),
83 test_callback_(new EncodeDecodeTestFrameCallback()) { 82 test_callback_(new EncodeDecodeTestFrameCallback()) {
84 testing_clock_->Advance( 83 testing_clock_->Advance(
85 base::TimeDelta::FromMilliseconds(kStartMillisecond)); 84 base::TimeDelta::FromMilliseconds(kStartMillisecond));
86 encoder_config_.max_number_of_video_buffers_used = 1; 85 encoder_config_.max_number_of_video_buffers_used = 1;
87 encoder_config_.number_of_cores = 1; 86 encoder_config_.number_of_cores = 1;
88 encoder_config_.width = kWidth; 87 encoder_config_.width = kWidth;
89 encoder_config_.height = kHeight; 88 encoder_config_.height = kHeight;
90 encoder_config_.start_bitrate = kStartbitrate; 89 encoder_config_.start_bitrate = kStartbitrate;
91 encoder_config_.min_qp = kMaxQp; 90 encoder_config_.min_qp = kMaxQp;
92 encoder_config_.min_qp = kMinQp; 91 encoder_config_.min_qp = kMinQp;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // Decode frame. 127 // Decode frame.
129 decoder_->Decode(&encoded_frame, 128 decoder_->Decode(&encoded_frame,
130 base::TimeTicks(), 129 base::TimeTicks(),
131 base::Bind(&EncodeDecodeTestFrameCallback::DecodeComplete, 130 base::Bind(&EncodeDecodeTestFrameCallback::DecodeComplete,
132 test_callback_)); 131 test_callback_));
133 task_runner_->RunTasks(); 132 task_runner_->RunTasks();
134 } 133 }
135 134
136 } // namespace cast 135 } // namespace cast
137 } // namespace media 136 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/rtcp/sender_rtcp_event_subscriber_unittest.cc ('k') | media/cast/test/end2end_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698