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

Side by Side Diff: remoting/capturer/shared_buffer_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/base/shared_buffer.h" 5 #include "remoting/capturer/shared_buffer.h"
6 #include "testing/gtest/include/gtest/gtest.h" 6 #include "testing/gtest/include/gtest/gtest.h"
7 7
8 const uint32 kBufferSize = 4096; 8 const uint32 kBufferSize = 4096;
9 const int kPattern = 0x12345678; 9 const int kPattern = 0x12345678;
10 10
11 const int kIdZero = 0; 11 const int kIdZero = 0;
12 const int kIdOne = 1; 12 const int kIdOne = 1;
13 13
14 namespace remoting { 14 namespace remoting {
15 15
(...skipping 25 matching lines...) Expand all
41 int* dest_ptr = reinterpret_cast<int*>(dest->ptr()); 41 int* dest_ptr = reinterpret_cast<int*>(dest->ptr());
42 EXPECT_EQ(*source_ptr, *dest_ptr); 42 EXPECT_EQ(*source_ptr, *dest_ptr);
43 43
44 // Check that the destination buffer is still mapped even when the source 44 // Check that the destination buffer is still mapped even when the source
45 // buffer is destroyed. 45 // buffer is destroyed.
46 source = NULL; 46 source = NULL;
47 EXPECT_EQ(0x12345678, *dest_ptr); 47 EXPECT_EQ(0x12345678, *dest_ptr);
48 } 48 }
49 49
50 } // namespace remoting 50 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/capturer/shared_buffer_factory.h ('k') | remoting/capturer/video_capturer_mock_objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698