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

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

Issue 11470028: Move screen capturers to remoting/capturer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
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 "remoting/codec/video_encoder_vp8.h" 5 #include "remoting/codec/video_encoder_vp8.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "remoting/base/capture_data.h" 13 #include "remoting/capturer/capture_data.h"
14 #include "remoting/codec/codec_test.h" 14 #include "remoting/codec/codec_test.h"
15 #include "remoting/proto/video.pb.h" 15 #include "remoting/proto/video.pb.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 namespace { 18 namespace {
19 19
20 const int kIntMax = std::numeric_limits<int>::max(); 20 const int kIntMax = std::numeric_limits<int>::max();
21 21
22 } // namespace 22 } // namespace
23 23
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 scoped_refptr<CaptureData> capture_data(new CaptureData( 89 scoped_refptr<CaptureData> capture_data(new CaptureData(
90 planes, SkISize::Make(width, height), media::VideoFrame::RGB32)); 90 planes, SkISize::Make(width, height), media::VideoFrame::RGB32));
91 capture_data->set_dpi(SkIPoint::Make(96, 97)); 91 capture_data->set_dpi(SkIPoint::Make(96, 97));
92 encoder.Encode(capture_data, false, 92 encoder.Encode(capture_data, false,
93 base::Bind(&VideoEncoderDpiCallback::DataAvailable, 93 base::Bind(&VideoEncoderDpiCallback::DataAvailable,
94 base::Unretained(&callback))); 94 base::Unretained(&callback)));
95 } 95 }
96 96
97 } // namespace remoting 97 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698