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

Unified Diff: ppapi/tests/test_flash.h

Issue 8589009: Pepper: Add some simple tests for most functions in the PPB_Flash interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fixes Created 9 years, 1 month 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/ppapi_tests.gypi ('k') | ppapi/tests/test_flash.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_flash.h
diff --git a/ppapi/tests/test_flash.h b/ppapi/tests/test_flash.h
new file mode 100644
index 0000000000000000000000000000000000000000..5dfed88aa789524fd3bd483a852c40f3e6f45737
--- /dev/null
+++ b/ppapi/tests/test_flash.h
@@ -0,0 +1,40 @@
+// Copyright (c) 2011 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 PAPPI_TESTS_TEST_FLASH_H_
+#define PAPPI_TESTS_TEST_FLASH_H_
+
+#include <string>
+
+#include "ppapi/cpp/completion_callback.h"
+#include "ppapi/c/pp_stdint.h"
+#include "ppapi/tests/test_case.h"
+
+struct PPB_Flash;
+
+class TestFlash : public TestCase {
+ public:
+ explicit TestFlash(TestingInstance* instance);
+
+ // TestCase implementation.
+ virtual bool Init();
+ virtual void RunTests(const std::string& filter);
+
+ private:
+ // TODO(viettrungluu): Implement the commented-out tests.
+ std::string TestSetInstanceAlwaysOnTop();
+ // std::string TestDrawGlyphs();
+ std::string TestGetProxyForURL();
+ // std::string TestNavigate();
+ std::string TestMessageLoop();
+ std::string TestGetLocalTimeZoneOffset();
+ std::string TestGetCommandLineArgs();
+
+ void QuitMessageLoopTask(int32_t);
+
+ const PPB_Flash* flash_interface_;
+ pp::CompletionCallbackFactory<TestFlash> callback_factory_;
+};
+
+#endif // PAPPI_TESTS_TEST_FLASH_H_
« no previous file with comments | « ppapi/ppapi_tests.gypi ('k') | ppapi/tests/test_flash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698