Move GetProcessIntegrityLevel to file_info.h and remove the handle argument.
[chromium-blink-merge.git] / ppapi / tests / test_file_mapping.h
blobbb83d265cd771b0c2b5809680481db7fc8437c81
1 // Copyright 2014 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.
5 #ifndef PAPPI_TESTS_TEST_FILE_MAPPING_H_
6 #define PAPPI_TESTS_TEST_FILE_MAPPING_H_
8 #include <string>
10 #include "ppapi/tests/test_case.h"
12 struct PPB_FileMapping_0_1;
14 class TestFileMapping : public TestCase {
15 public:
16 explicit TestFileMapping(TestingInstance* instance)
17 : TestCase(instance),
18 file_mapping_if_(NULL) {
20 virtual ~TestFileMapping() {}
22 private:
23 // TestCase implementation.
24 virtual bool Init();
25 virtual void RunTests(const std::string& filter);
27 std::string MapAndCheckResults(uint32_t prot, uint32_t flags);
29 std::string TestBadParameters();
30 std::string TestMap();
31 std::string TestPartialRegions();
33 // TODO(dmichael): Use unversioned struct when it goes stable.
34 const PPB_FileMapping_0_1* file_mapping_if_;
37 #endif // PAPPI_TESTS_TEST_FILE_MAPPING_H_