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

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: 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
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..35671d406931c4943e1df5a9d83ffdc6dbb0aa51
--- /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 RunTest();
dmichael (off chromium) 2011/11/17 04:10:46 This is now 'RunTests(const std::string& filter)'
viettrungluu 2011/11/17 19:13:39 Done.
+
+ 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') | ppapi/tests/test_flash.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698