OLD | NEW |
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 "remoting/host/shaped_desktop_capturer.h" | 5 #include "remoting/host/shaped_desktop_capturer.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "remoting/host/desktop_shape_tracker.h" | 9 #include "remoting/host/desktop_shape_tracker.h" |
8 #include "remoting/protocol/fake_desktop_capturer.h" | 10 #include "remoting/protocol/fake_desktop_capturer.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" | 12 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" |
11 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" | 13 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" |
12 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h" | 14 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h" |
13 | 15 |
14 namespace remoting { | 16 namespace remoting { |
15 | 17 |
16 class FakeDesktopShapeTracker : public DesktopShapeTracker { | 18 class FakeDesktopShapeTracker : public DesktopShapeTracker { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 make_scoped_ptr(new FakeDesktopShapeTracker())); | 61 make_scoped_ptr(new FakeDesktopShapeTracker())); |
60 capturer.Start(this); | 62 capturer.Start(this); |
61 capturer.Capture(webrtc::DesktopRegion()); | 63 capturer.Capture(webrtc::DesktopRegion()); |
62 ASSERT_TRUE(last_frame_.get()); | 64 ASSERT_TRUE(last_frame_.get()); |
63 ASSERT_TRUE(last_frame_->shape()); | 65 ASSERT_TRUE(last_frame_->shape()); |
64 EXPECT_TRUE( | 66 EXPECT_TRUE( |
65 FakeDesktopShapeTracker::CreateShape().Equals(*last_frame_->shape())); | 67 FakeDesktopShapeTracker::CreateShape().Equals(*last_frame_->shape())); |
66 } | 68 } |
67 | 69 |
68 } // namespace remoting | 70 } // namespace remoting |
OLD | NEW |