OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef PPAPI_TESTS_TEST_PRINTING_H_ | 5 #ifndef PPAPI_TESTS_TEST_PRINTING_H_ |
6 #define PPAPI_TESTS_TEST_PRINTING_H_ | 6 #define PPAPI_TESTS_TEST_PRINTING_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 | 11 |
10 #include "ppapi/tests/test_case.h" | 12 #include "ppapi/tests/test_case.h" |
11 #include "ppapi/tests/test_utils.h" | 13 #include "ppapi/tests/test_utils.h" |
12 #include "ppapi/utility/completion_callback_factory.h" | 14 #include "ppapi/utility/completion_callback_factory.h" |
13 | 15 |
14 struct PP_PrintSettings_Dev; | 16 struct PP_PrintSettings_Dev; |
15 | 17 |
16 class TestPrinting : public TestCase { | 18 class TestPrinting : public TestCase { |
17 public: | 19 public: |
18 explicit TestPrinting(TestingInstance* instance); | 20 explicit TestPrinting(TestingInstance* instance); |
19 | 21 |
20 // TestCase implementation. | 22 // TestCase implementation. |
21 virtual void RunTests(const std::string& filter); | 23 virtual void RunTests(const std::string& filter); |
22 | 24 |
23 private: | 25 private: |
24 // Tests. | 26 // Tests. |
25 std::string TestGetDefaultPrintSettings(); | 27 std::string TestGetDefaultPrintSettings(); |
26 | 28 |
27 void Callback(int32_t result, | 29 void Callback(int32_t result, |
28 PP_PrintSettings_Dev&); | 30 PP_PrintSettings_Dev&); |
29 | 31 |
30 NestedEvent nested_event_; | 32 NestedEvent nested_event_; |
31 | 33 |
32 pp::CompletionCallbackFactory<TestPrinting> callback_factory_; | 34 pp::CompletionCallbackFactory<TestPrinting> callback_factory_; |
33 }; | 35 }; |
34 | 36 |
35 #endif // PPAPI_TESTS_TEST_PRINTING_H_ | 37 #endif // PPAPI_TESTS_TEST_PRINTING_H_ |
OLD | NEW |