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

Side by Side 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 Windows build? 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 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_FILE_MAPPING_H_
6 #define PAPPI_TESTS_TEST_FILE_MAPPING_H_
7
8 #include <string>
9
10 #include "ppapi/tests/test_case.h"
11
12 struct PPB_FileMapping_0_1;
13
14 class TestFileMapping : public TestCase {
15 public:
16 explicit TestFileMapping(TestingInstance* instance)
17 : TestCase(instance),
18 file_mapping_if_(NULL) {
19 }
20 virtual ~TestFileMapping() {}
21
22 private:
23 // TestCase implementation.
24 virtual bool Init();
25 virtual void RunTests(const std::string& filter);
26
27 std::string MapAndCheckResults(uint32_t prot, uint32_t flags);
28
29 std::string TestBadParameters();
30 std::string TestMap();
31 std::string TestPartialRegions();
32
33 // TODO(dmichael): Use unversioned struct when it goes stable.
34 const PPB_FileMapping_0_1* file_mapping_if_;
35 };
36
37 #endif // PAPPI_TESTS_TEST_FILE_MAPPING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698