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

Side by Side Diff: media/cast/receiver/video_decoder_unittest.cc

Issue 901833004: [Cast] Repurpose CastInitializationStatus for variable frame size support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile fixes. Created 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <cstdlib> 5 #include <cstdlib>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/synchronization/condition_variable.h" 10 #include "base/synchronization/condition_variable.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 } 45 }
46 46
47 virtual ~VideoDecoderTest() { 47 virtual ~VideoDecoderTest() {
48 // Make sure all threads have stopped before the environment goes away. 48 // Make sure all threads have stopped before the environment goes away.
49 cast_environment_->Shutdown(); 49 cast_environment_->Shutdown();
50 } 50 }
51 51
52 protected: 52 protected:
53 void SetUp() override { 53 void SetUp() override {
54 video_decoder_.reset(new VideoDecoder(cast_environment_, GetParam())); 54 video_decoder_.reset(new VideoDecoder(cast_environment_, GetParam()));
55 CHECK_EQ(STATUS_VIDEO_INITIALIZED, video_decoder_->InitializationResult()); 55 CHECK_EQ(STATUS_INITIALIZED, video_decoder_->InitializationResult());
56 56
57 next_frame_size_ = gfx::Size(kStartingWidth, kStartingHeight); 57 next_frame_size_ = gfx::Size(kStartingWidth, kStartingHeight);
58 next_frame_timestamp_ = base::TimeDelta(); 58 next_frame_timestamp_ = base::TimeDelta();
59 last_frame_id_ = 0; 59 last_frame_id_ = 0;
60 seen_a_decoded_frame_ = false; 60 seen_a_decoded_frame_ = false;
61 61
62 total_video_frames_feed_in_ = 0; 62 total_video_frames_feed_in_ = 0;
63 total_video_frames_decoded_ = 0; 63 total_video_frames_decoded_ = 0;
64 } 64 }
65 65
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 222
223 WaitForAllVideoToBeDecoded(); 223 WaitForAllVideoToBeDecoded();
224 } 224 }
225 225
226 INSTANTIATE_TEST_CASE_P(, 226 INSTANTIATE_TEST_CASE_P(,
227 VideoDecoderTest, 227 VideoDecoderTest,
228 ::testing::Values(CODEC_VIDEO_VP8)); 228 ::testing::Values(CODEC_VIDEO_VP8));
229 229
230 } // namespace cast 230 } // namespace cast
231 } // namespace media 231 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698