[email protected] | 234c139 | 2012-09-27 23:30:41 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef PPAPI_TESTS_TEST_PRINTING_H_ |
| 6 | #define PPAPI_TESTS_TEST_PRINTING_H_ |
| 7 | |
avi | e029c413 | 2015-12-23 06:45:22 | [diff] [blame] | 8 | #include <stdint.h> |
| 9 | |
[email protected] | 234c139 | 2012-09-27 23:30:41 | [diff] [blame] | 10 | #include <string> |
| 11 | |
| 12 | #include "ppapi/tests/test_case.h" |
| 13 | #include "ppapi/tests/test_utils.h" |
| 14 | #include "ppapi/utility/completion_callback_factory.h" |
| 15 | |
| 16 | struct PP_PrintSettings_Dev; |
| 17 | |
| 18 | class TestPrinting : public TestCase { |
| 19 | public: |
| 20 | explicit TestPrinting(TestingInstance* instance); |
| 21 | |
| 22 | // TestCase implementation. |
| 23 | virtual void RunTests(const std::string& filter); |
| 24 | |
| 25 | private: |
| 26 | // Tests. |
| 27 | std::string TestGetDefaultPrintSettings(); |
| 28 | |
| 29 | void Callback(int32_t result, |
| 30 | PP_PrintSettings_Dev&); |
| 31 | |
| 32 | NestedEvent nested_event_; |
| 33 | |
| 34 | pp::CompletionCallbackFactory<TestPrinting> callback_factory_; |
| 35 | }; |
| 36 | |
| 37 | #endif // PPAPI_TESTS_TEST_PRINTING_H_ |