OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ppapi/tests/test_buffer.h" | 5 #include "ppapi/tests/test_buffer.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include "ppapi/c/dev/ppb_buffer_dev.h" | 9 #include "ppapi/c/dev/ppb_buffer_dev.h" |
8 #include "ppapi/cpp/dev/buffer_dev.h" | 10 #include "ppapi/cpp/dev/buffer_dev.h" |
9 #include "ppapi/cpp/graphics_2d.h" | 11 #include "ppapi/cpp/graphics_2d.h" |
10 #include "ppapi/cpp/instance.h" | 12 #include "ppapi/cpp/instance.h" |
11 #include "ppapi/cpp/module.h" | 13 #include "ppapi/cpp/module.h" |
12 #include "ppapi/tests/testing_instance.h" | 14 #include "ppapi/tests/testing_instance.h" |
13 | 15 |
14 REGISTER_TEST_CASE(Buffer); | 16 REGISTER_TEST_CASE(Buffer); |
15 | 17 |
16 bool TestBuffer::Init() { | 18 bool TestBuffer::Init() { |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 107 |
106 // Test that we can still write to copy's copy of the data. | 108 // Test that we can still write to copy's copy of the data. |
107 char* copy_data = static_cast<char*>(copy->data()); | 109 char* copy_data = static_cast<char*>(copy->data()); |
108 for (int i = 0; i < kBufferSize; ++i) | 110 for (int i = 0; i < kBufferSize; ++i) |
109 copy_data[i] = 'Y'; | 111 copy_data[i] = 'Y'; |
110 | 112 |
111 delete copy; | 113 delete copy; |
112 | 114 |
113 PASS(); | 115 PASS(); |
114 } | 116 } |
OLD | NEW |