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

Side by Side Diff: remoting/codec/video_encoder_verbatim_unittest.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 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
« no previous file with comments | « remoting/codec/video_encoder_verbatim.cc ('k') | remoting/codec/video_encoder_vpx.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "remoting/codec/video_encoder_verbatim.h" 5 #include "remoting/codec/video_encoder_verbatim.h"
6 6
7 #include "remoting/codec/codec_test.h" 7 #include "remoting/codec/codec_test.h"
8 #include "remoting/codec/video_decoder_verbatim.h" 8 #include "remoting/codec/video_decoder_verbatim.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 namespace remoting { 11 namespace remoting {
12 12
13 TEST(VideoEncoderVerbatimTest, TestVideoEncoder) { 13 TEST(VideoEncoderVerbatimTest, TestVideoEncoder) {
14 scoped_ptr<VideoEncoderVerbatim> encoder(new VideoEncoderVerbatim()); 14 std::unique_ptr<VideoEncoderVerbatim> encoder(new VideoEncoderVerbatim());
15 TestVideoEncoder(encoder.get(), true); 15 TestVideoEncoder(encoder.get(), true);
16 } 16 }
17 17
18 TEST(VideoEncoderVerbatimTest, EncodeAndDecode) { 18 TEST(VideoEncoderVerbatimTest, EncodeAndDecode) {
19 scoped_ptr<VideoEncoderVerbatim> encoder(new VideoEncoderVerbatim()); 19 std::unique_ptr<VideoEncoderVerbatim> encoder(new VideoEncoderVerbatim());
20 scoped_ptr<VideoDecoderVerbatim> decoder(new VideoDecoderVerbatim()); 20 std::unique_ptr<VideoDecoderVerbatim> decoder(new VideoDecoderVerbatim());
21 TestVideoEncoderDecoder(encoder.get(), decoder.get(), true); 21 TestVideoEncoderDecoder(encoder.get(), decoder.get(), true);
22 } 22 }
23 23
24 TEST(VideoEncoderVerbatimTest, EncodeUnchangedFrame) { 24 TEST(VideoEncoderVerbatimTest, EncodeUnchangedFrame) {
25 scoped_ptr<VideoEncoderVerbatim> encoder(new VideoEncoderVerbatim()); 25 std::unique_ptr<VideoEncoderVerbatim> encoder(new VideoEncoderVerbatim());
26 TestVideoEncoderEmptyFrames(encoder.get(), 0); 26 TestVideoEncoderEmptyFrames(encoder.get(), 0);
27 } 27 }
28 28
29 } // namespace remoting 29 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/codec/video_encoder_verbatim.cc ('k') | remoting/codec/video_encoder_vpx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698