| 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_memory.h" | 5 #include "ppapi/tests/test_memory.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
| 7 #include "ppapi/c/dev/ppb_memory_dev.h" | 10 #include "ppapi/c/dev/ppb_memory_dev.h" |
| 8 #include "ppapi/cpp/instance.h" | 11 #include "ppapi/cpp/instance.h" |
| 9 #include "ppapi/cpp/module.h" | 12 #include "ppapi/cpp/module.h" |
| 10 #include "ppapi/tests/testing_instance.h" | 13 #include "ppapi/tests/testing_instance.h" |
| 11 | 14 |
| 12 namespace { | 15 namespace { |
| 13 | 16 |
| 14 size_t kTestBufferSize = 1000; | 17 size_t kTestBufferSize = 1000; |
| 15 | 18 |
| 16 } // namespace | 19 } // namespace |
| (...skipping 22 matching lines...) Expand all Loading... |
| 39 PASS(); | 42 PASS(); |
| 40 } | 43 } |
| 41 | 44 |
| 42 std::string TestMemory::TestNullMemFree() { | 45 std::string TestMemory::TestNullMemFree() { |
| 43 // Failure crashes the test. | 46 // Failure crashes the test. |
| 44 memory_dev_interface_->MemFree(NULL); | 47 memory_dev_interface_->MemFree(NULL); |
| 45 | 48 |
| 46 PASS(); | 49 PASS(); |
| 47 } | 50 } |
| 48 | 51 |
| OLD | NEW |