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

Unified Diff: ppapi/tests/test_file_mapping.h

Issue 69663002: PPAPI: Implement PPB_FileMapping on POSIX (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix missing return Created 6 years, 11 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/tests/all_c_includes.h ('k') | ppapi/tests/test_file_mapping.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « ppapi/tests/all_c_includes.h ('k') | ppapi/tests/test_file_mapping.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698