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

Unified Diff: ppapi/tests/test_printing.h

Issue 10826072: Implement browser side of PPB_Printing resource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/proxy/printing_resource.cc ('k') | ppapi/tests/test_printing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_printing.h
diff --git a/ppapi/tests/test_printing.h b/ppapi/tests/test_printing.h
new file mode 100644
index 0000000000000000000000000000000000000000..ceb0983c5a2fabb260cbc297c99d6fdfd825c13d
--- /dev/null
+++ b/ppapi/tests/test_printing.h
@@ -0,0 +1,35 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef PPAPI_TESTS_TEST_PRINTING_H_
+#define PPAPI_TESTS_TEST_PRINTING_H_
+
+#include <string>
+
+#include "ppapi/tests/test_case.h"
+#include "ppapi/tests/test_utils.h"
+#include "ppapi/utility/completion_callback_factory.h"
+
+struct PP_PrintSettings_Dev;
+
+class TestPrinting : public TestCase {
+ public:
+ explicit TestPrinting(TestingInstance* instance);
+
+ // TestCase implementation.
+ virtual void RunTests(const std::string& filter);
+
+ private:
+ // Tests.
+ std::string TestGetDefaultPrintSettings();
+
+ void Callback(int32_t result,
+ PP_PrintSettings_Dev&);
+
+ NestedEvent nested_event_;
+
+ pp::CompletionCallbackFactory<TestPrinting> callback_factory_;
+};
+
+#endif // PPAPI_TESTS_TEST_PRINTING_H_
« no previous file with comments | « ppapi/proxy/printing_resource.cc ('k') | ppapi/tests/test_printing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698