OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "content/browser/media/capture/desktop_capture_device.h" | 5 #include "content/browser/media/capture/desktop_capture_device.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <string.h> | 9 #include <string.h> |
10 #include <algorithm> | 10 #include <algorithm> |
11 #include <string> | 11 #include <string> |
12 #include <utility> | 12 #include <utility> |
13 | 13 |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/synchronization/waitable_event.h" | 15 #include "base/synchronization/waitable_event.h" |
16 #include "base/test/test_timeouts.h" | 16 #include "base/test/test_timeouts.h" |
17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
18 #include "content/public/test/test_browser_thread_bundle.h" | 18 #include "content/public/test/test_browser_thread_bundle.h" |
19 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 #include "third_party/webrtc/modules/desktop_capture/desktop_capture_options.h" | 21 #include "third_party/webrtc/modules/desktop_capture/desktop_capture_options.h" |
| 22 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" |
22 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" | 23 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" |
23 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" | 24 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" |
24 #include "third_party/webrtc/modules/desktop_capture/screen_capturer.h" | |
25 | 25 |
26 using ::testing::_; | 26 using ::testing::_; |
27 using ::testing::AnyNumber; | 27 using ::testing::AnyNumber; |
28 using ::testing::DoAll; | 28 using ::testing::DoAll; |
29 using ::testing::Expectation; | 29 using ::testing::Expectation; |
30 using ::testing::Invoke; | 30 using ::testing::Invoke; |
31 using ::testing::InvokeWithoutArgs; | 31 using ::testing::InvokeWithoutArgs; |
32 using ::testing::SaveArg; | 32 using ::testing::SaveArg; |
33 using ::testing::WithArg; | 33 using ::testing::WithArg; |
34 | 34 |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 frame_size); | 550 frame_size); |
551 for (int i = 0; i < output_frame_->size().height(); ++i) { | 551 for (int i = 0; i < output_frame_->size().height(); ++i) { |
552 EXPECT_EQ(0, | 552 EXPECT_EQ(0, |
553 memcmp(inverted_frame->data() + i * inverted_frame->stride(), | 553 memcmp(inverted_frame->data() + i * inverted_frame->stride(), |
554 output_frame_->data() + i * output_frame_->stride(), | 554 output_frame_->data() + i * output_frame_->stride(), |
555 output_frame_->stride())); | 555 output_frame_->stride())); |
556 } | 556 } |
557 } | 557 } |
558 | 558 |
559 } // namespace content | 559 } // namespace content |
OLD | NEW |