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

Side by Side Diff: webrtc/modules/desktop_capture/differ_unittest.cc

Issue 1345433002: Add RTC_ prefix to contructormagic macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Formatting fix. Created 5 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 int stride_; 197 int stride_;
198 198
199 // Size of each screen buffer. 199 // Size of each screen buffer.
200 int buffer_size_; 200 int buffer_size_;
201 201
202 // Previous and current screen buffers. 202 // Previous and current screen buffers.
203 rtc::scoped_ptr<uint8_t[]> prev_; 203 rtc::scoped_ptr<uint8_t[]> prev_;
204 rtc::scoped_ptr<uint8_t[]> curr_; 204 rtc::scoped_ptr<uint8_t[]> curr_;
205 205
206 private: 206 private:
207 DISALLOW_COPY_AND_ASSIGN(DifferTest); 207 RTC_DISALLOW_COPY_AND_ASSIGN(DifferTest);
208 }; 208 };
209 209
210 TEST_F(DifferTest, Setup) { 210 TEST_F(DifferTest, Setup) {
211 InitDiffer(kScreenWidth, kScreenHeight); 211 InitDiffer(kScreenWidth, kScreenHeight);
212 // 96x96 pixels results in 3x3 array. Add 1 to each dimension as boundary. 212 // 96x96 pixels results in 3x3 array. Add 1 to each dimension as boundary.
213 // +---+---+---+---+ 213 // +---+---+---+---+
214 // | o | o | o | _ | 214 // | o | o | o | _ |
215 // +---+---+---+---+ o = blocks mapped to screen pixels 215 // +---+---+---+---+ o = blocks mapped to screen pixels
216 // | o | o | o | _ | 216 // | o | o | o | _ |
217 // +---+---+---+---+ _ = boundary blocks 217 // +---+---+---+---+ _ = boundary blocks
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 643
644 dirty.Clear(); 644 dirty.Clear();
645 MergeBlocks(&dirty); 645 MergeBlocks(&dirty);
646 646
647 ASSERT_EQ(2, RegionRectCount(dirty)); 647 ASSERT_EQ(2, RegionRectCount(dirty));
648 ASSERT_TRUE(CheckDirtyRegionContainsRect(dirty, 0, 0, 2, 2)); 648 ASSERT_TRUE(CheckDirtyRegionContainsRect(dirty, 0, 0, 2, 2));
649 ASSERT_TRUE(CheckDirtyRegionContainsRect(dirty, 1, 2, 1, 1)); 649 ASSERT_TRUE(CheckDirtyRegionContainsRect(dirty, 1, 2, 1, 1));
650 } 650 }
651 651
652 } // namespace webrtc 652 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/desktop_capture/differ.h ('k') | webrtc/modules/desktop_capture/mac/desktop_configuration_monitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698