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 | 10 |
10 #include <algorithm> | 11 #include <algorithm> |
11 #include <string> | 12 #include <string> |
12 | 13 |
13 #include "base/macros.h" | 14 #include "base/macros.h" |
14 #include "base/synchronization/waitable_event.h" | 15 #include "base/synchronization/waitable_event.h" |
15 #include "base/test/test_timeouts.h" | 16 #include "base/test/test_timeouts.h" |
16 #include "base/time/time.h" | 17 #include "base/time/time.h" |
17 #include "content/public/test/test_browser_thread_bundle.h" | 18 #include "content/public/test/test_browser_thread_bundle.h" |
18 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 frame_size); | 525 frame_size); |
525 for (int i = 0; i < output_frame_->size().height(); ++i) { | 526 for (int i = 0; i < output_frame_->size().height(); ++i) { |
526 EXPECT_EQ(0, | 527 EXPECT_EQ(0, |
527 memcmp(inverted_frame->data() + i * inverted_frame->stride(), | 528 memcmp(inverted_frame->data() + i * inverted_frame->stride(), |
528 output_frame_->data() + i * output_frame_->stride(), | 529 output_frame_->data() + i * output_frame_->stride(), |
529 output_frame_->stride())); | 530 output_frame_->stride())); |
530 } | 531 } |
531 } | 532 } |
532 | 533 |
533 } // namespace content | 534 } // namespace content |
OLD | NEW |