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 "ppapi/tests/test_file_system.h" | 5 #include "ppapi/tests/test_file_system.h" |
6 | 6 |
| 7 #include <stdint.h> |
7 #include <string.h> | 8 #include <string.h> |
8 | 9 |
9 #include "ppapi/c/pp_errors.h" | 10 #include "ppapi/c/pp_errors.h" |
10 #include "ppapi/cpp/file_io.h" | 11 #include "ppapi/cpp/file_io.h" |
11 #include "ppapi/cpp/file_system.h" | 12 #include "ppapi/cpp/file_system.h" |
12 #include "ppapi/cpp/resource.h" | 13 #include "ppapi/cpp/resource.h" |
13 #include "ppapi/tests/test_utils.h" | 14 #include "ppapi/tests/test_utils.h" |
14 #include "ppapi/tests/testing_instance.h" | 15 #include "ppapi/tests/testing_instance.h" |
15 | 16 |
16 REGISTER_TEST_CASE(FileSystem); | 17 REGISTER_TEST_CASE(FileSystem); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 82 |
82 // Test conversion that a non-file system Resource does not register as a | 83 // Test conversion that a non-file system Resource does not register as a |
83 // FileSystem. (We cannot test conversion, since this is an assertion on a | 84 // FileSystem. (We cannot test conversion, since this is an assertion on a |
84 // debug build.) | 85 // debug build.) |
85 pp::FileIO non_file_system(instance_); | 86 pp::FileIO non_file_system(instance_); |
86 pp::Resource non_file_system_resource(non_file_system); | 87 pp::Resource non_file_system_resource(non_file_system); |
87 ASSERT_FALSE(pp::FileSystem::IsFileSystem(non_file_system_resource)); | 88 ASSERT_FALSE(pp::FileSystem::IsFileSystem(non_file_system_resource)); |
88 | 89 |
89 PASS(); | 90 PASS(); |
90 } | 91 } |
OLD | NEW |