| 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_flash_file.h" | 5 #include "ppapi/tests/test_flash_file.h" |
| 6 | 6 |
| 7 #include "ppapi/cpp/module.h" | 7 #include "ppapi/cpp/module.h" |
| 8 #include "ppapi/cpp/private/flash_file.h" | 8 #include "ppapi/cpp/private/flash_file.h" |
| 9 #include "ppapi/tests/testing_instance.h" | 9 #include "ppapi/tests/testing_instance.h" |
| 10 #include "ppapi/tests/test_utils.h" | 10 #include "ppapi/tests/test_utils.h" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 115 |
| 116 size_t after_close = 0; | 116 size_t after_close = 0; |
| 117 ASSERT_SUBTEST_SUCCESS(GetItemCountUnderModuleLocalRoot(&after_close)); | 117 ASSERT_SUBTEST_SUCCESS(GetItemCountUnderModuleLocalRoot(&after_close)); |
| 118 ASSERT_EQ(before_create, after_close); | 118 ASSERT_EQ(before_create, after_close); |
| 119 | 119 |
| 120 PASS(); | 120 PASS(); |
| 121 } | 121 } |
| 122 | 122 |
| 123 std::string TestFlashFile::GetItemCountUnderModuleLocalRoot( | 123 std::string TestFlashFile::GetItemCountUnderModuleLocalRoot( |
| 124 size_t* item_count) { | 124 size_t* item_count) { |
| 125 std::vector<PP_DirEntry_Dev> contents; | 125 std::vector<FileModuleLocal::DirEntry> contents; |
| 126 ASSERT_TRUE(FileModuleLocal::GetDirContents(instance_, "", &contents)); | 126 ASSERT_TRUE(FileModuleLocal::GetDirContents(instance_, "", &contents)); |
| 127 *item_count = contents.size(); | 127 *item_count = contents.size(); |
| 128 PASS(); | 128 PASS(); |
| 129 } | 129 } |
| OLD | NEW |