Index: ppapi/tests/test_file_mapping.h |
diff --git a/ppapi/tests/test_file_mapping.h b/ppapi/tests/test_file_mapping.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..66cf5375d2e05da0f86387471064666011308e90 |
--- /dev/null |
+++ b/ppapi/tests/test_file_mapping.h |
@@ -0,0 +1,37 @@ |
+// Copyright (c) 2011 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_FILE_MAPPING_H_ |
+#define PAPPI_TESTS_TEST_FILE_MAPPING_H_ |
+ |
+#include <string> |
+ |
+#include "ppapi/tests/test_case.h" |
+ |
+struct PPB_FileMapping_0_1; |
+ |
+class TestFileMapping : public TestCase { |
+ public: |
+ explicit TestFileMapping(TestingInstance* instance) |
+ : TestCase(instance), |
+ file_mapping_if_(NULL) { |
+ } |
+ virtual ~TestFileMapping() {} |
+ |
+ private: |
+ // TestCase implementation. |
+ virtual bool Init(); |
+ virtual void RunTests(const std::string& filter); |
+ |
+ std::string MapAndCheckResults(uint32_t prot, uint32_t flags); |
+ |
+ std::string TestBadParameters(); |
+ std::string TestMap(); |
+ std::string TestPartialRegions(); |
+ |
+ // TODO(dmichael): Use unversioned struct when it goes stable. |
+ const PPB_FileMapping_0_1* file_mapping_if_; |
+}; |
+ |
+#endif // PAPPI_TESTS_TEST_FILE_MAPPING_H_ |