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

Side by Side Diff: media/cast/sender/external_video_encoder_unittest.cc

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef Created 5 years 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/cast/sender/external_video_encoder.h" 5 #include "media/cast/sender/external_video_encoder.h"
6 6
7 #include <stdint.h>
8
7 #include "media/base/video_frame.h" 9 #include "media/base/video_frame.h"
8 #include "media/base/video_types.h" 10 #include "media/base/video_types.h"
9 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
10 12
11 namespace media { 13 namespace media {
12 namespace cast { 14 namespace cast {
13 15
14 namespace { 16 namespace {
15 17
16 scoped_refptr<VideoFrame> CreateFrame(const uint8_t* y_plane_data, 18 scoped_refptr<VideoFrame> CreateFrame(const uint8_t* y_plane_data,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 random_frame_data.get()[j] = static_cast<uint8_t>(rand_seed & 0xff); 75 random_frame_data.get()[j] = static_cast<uint8_t>(rand_seed & 0xff);
74 } 76 }
75 const scoped_refptr<VideoFrame> random_frame = 77 const scoped_refptr<VideoFrame> random_frame =
76 CreateFrame(random_frame_data.get(), frame_size); 78 CreateFrame(random_frame_data.get(), frame_size);
77 EXPECT_LE(50.0, qe.EstimateForDeltaFrame(*random_frame)); 79 EXPECT_LE(50.0, qe.EstimateForDeltaFrame(*random_frame));
78 } 80 }
79 } 81 }
80 82
81 } // namespace cast 83 } // namespace cast
82 } // namespace media 84 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/sender/external_video_encoder.cc ('k') | media/cast/sender/fake_software_video_encoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698