OLD | NEW |
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 Loading... |
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 |
OLD | NEW |