blob: b076157ee70e998eb2bdda5eeb4ca3cd9f115e82 [file] [log] [blame]
[email protected]234c1392012-09-27 23:30:411// 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
avie029c4132015-12-23 06:45:228#include <stdint.h>
9
[email protected]234c1392012-09-27 23:30:4110#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
16struct PP_PrintSettings_Dev;
17
18class 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_