| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PAPPI_TESTS_TEST_FLASH_FILE_H_ |
| 6 #define PPAPI_TESTS_TEST_FLASH_FILE_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "ppapi/c/private/ppb_flash_file.h" |
| 11 #include "ppapi/tests/test_case.h" |
| 12 |
| 13 class TestFlashFile: public TestCase { |
| 14 public: |
| 15 explicit TestFlashFile(TestingInstance* instance); |
| 16 virtual ~TestFlashFile(); |
| 17 |
| 18 // TestCase implementation. |
| 19 virtual bool Init(); |
| 20 virtual void RunTests(const std::string& filter); |
| 21 |
| 22 private: |
| 23 // TODO(yzshen): Add more test cases for PPB_Flash_File_ModuleLocal and |
| 24 // PPB_Flash_File_FileRef. |
| 25 std::string TestCreateTemporaryFile(); |
| 26 |
| 27 // Gets the number of files and directories under the module-local root |
| 28 // directory. |
| 29 std::string GetItemCountUnderModuleLocalRoot(int32_t* item_count); |
| 30 |
| 31 const PPB_Flash_File_ModuleLocal* module_local_interface_; |
| 32 }; |
| 33 |
| 34 #endif // PPAPI_TESTS_TEST_FLASH_FILE_H_ |
| OLD | NEW |