summaryrefslogtreecommitdiffstats
path: root/ppapi/tests/test_flash.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/tests/test_flash.cc')
-rw-r--r--ppapi/tests/test_flash.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/ppapi/tests/test_flash.cc b/ppapi/tests/test_flash.cc
index 2657bf0..51ee08c 100644
--- a/ppapi/tests/test_flash.cc
+++ b/ppapi/tests/test_flash.cc
@@ -32,6 +32,7 @@ void TestFlash::RunTests(const std::string& filter) {
RUN_TEST(MessageLoop, filter);
RUN_TEST(GetLocalTimeZoneOffset, filter);
RUN_TEST(GetCommandLineArgs, filter);
+ RUN_TEST(GetDeviceID, filter);
}
std::string TestFlash::TestSetInstanceAlwaysOnTop() {
@@ -99,6 +100,15 @@ std::string TestFlash::TestGetCommandLineArgs() {
PASS();
}
+std::string TestFlash::TestGetDeviceID() {
+ Var result(pp::PASS_REF,
+ flash_interface_->GetDeviceID(instance_->pp_instance()));
+ // TODO(wad) figure out how to mock the input and test the full flow.
+ ASSERT_TRUE(result.is_string());
+ PASS();
+}
+
+
void TestFlash::QuitMessageLoopTask(int32_t) {
flash_interface_->QuitMessageLoop(instance_->pp_instance());
}