Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(765)

Unified Diff: ppapi/tests/test_flash_file.h

Issue 10534045: Add CreateTemporaryFile to PPB_Flash_File_ModuleLocal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/proxy/ppb_flash_proxy.cc ('k') | ppapi/tests/test_flash_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_flash_file.h
diff --git a/ppapi/tests/test_flash_file.h b/ppapi/tests/test_flash_file.h
new file mode 100644
index 0000000000000000000000000000000000000000..36adfae8d9bf3ce361ed413966e43deb0ce6e6af
--- /dev/null
+++ b/ppapi/tests/test_flash_file.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef PAPPI_TESTS_TEST_FLASH_FILE_H_
+#define PPAPI_TESTS_TEST_FLASH_FILE_H_
+
+#include <string>
+
+#include "ppapi/c/private/ppb_flash_file.h"
+#include "ppapi/tests/test_case.h"
+
+class TestFlashFile: public TestCase {
+ public:
+ explicit TestFlashFile(TestingInstance* instance);
+ virtual ~TestFlashFile();
+
+ // TestCase implementation.
+ virtual bool Init();
+ virtual void RunTests(const std::string& filter);
+
+ private:
+ // TODO(yzshen): Add more test cases for PPB_Flash_File_ModuleLocal and
+ // PPB_Flash_File_FileRef.
+ std::string TestCreateTemporaryFile();
+
+ // Gets the number of files and directories under the module-local root
+ // directory.
+ std::string GetItemCountUnderModuleLocalRoot(int32_t* item_count);
+
+ const PPB_Flash_File_ModuleLocal* module_local_interface_;
+};
+
+#endif // PPAPI_TESTS_TEST_FLASH_FILE_H_
« no previous file with comments | « ppapi/proxy/ppb_flash_proxy.cc ('k') | ppapi/tests/test_flash_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698