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 8#include <string> 9 10#include "ppapi/tests/test_case.h" 11#include "ppapi/tests/test_utils.h" 12#include "ppapi/utility/completion_callback_factory.h" 13 14struct PP_PrintSettings_Dev; 15 16class TestPrinting : public TestCase { 17 public: 18 explicit TestPrinting(TestingInstance* instance); 19 20 // TestCase implementation. 21 virtual void RunTests(const std::string& filter); 22 23 private: 24 // Tests. 25 std::string TestGetDefaultPrintSettings(); 26 27 void Callback(int32_t result, 28 PP_PrintSettings_Dev&); 29 30 NestedEvent nested_event_; 31 32 pp::CompletionCallbackFactory<TestPrinting> callback_factory_; 33}; 34 35#endif // PPAPI_TESTS_TEST_PRINTING_H_ 36