OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ppapi/tests/test_flash.h" | 5 #include "ppapi/tests/test_flash.h" |
6 | 6 |
7 #include "ppapi/c/pp_macros.h" | 7 #include "ppapi/c/pp_macros.h" |
8 #include "ppapi/c/private/ppb_flash.h" | 8 #include "ppapi/c/private/ppb_flash.h" |
9 #include "ppapi/cpp/instance.h" | 9 #include "ppapi/cpp/instance.h" |
10 #include "ppapi/cpp/module.h" | 10 #include "ppapi/cpp/module.h" |
11 #include "ppapi/cpp/private/flash.h" | 11 #include "ppapi/cpp/private/flash.h" |
12 #include "ppapi/cpp/var.h" | 12 #include "ppapi/cpp/var.h" |
13 #include "ppapi/tests/testing_instance.h" | 13 #include "ppapi/tests/testing_instance.h" |
14 | 14 |
15 REGISTER_TEST_CASE(Flash); | 15 REGISTER_TEST_CASE(Flash); |
16 | 16 |
17 using pp::flash::Flash; | 17 using pp::flash::Flash; |
18 using pp::Var; | 18 using pp::Var; |
19 | 19 |
20 TestFlash::TestFlash(TestingInstance* instance) | 20 TestFlash::TestFlash(TestingInstance* instance) |
21 : TestCase(instance), | 21 : TestCase(instance), |
22 PP_ALLOW_THIS_IN_INITIALIZER_LIST(callback_factory_(this)) { | 22 callback_factory_(this) { |
23 } | 23 } |
24 | 24 |
25 void TestFlash::RunTests(const std::string& filter) { | 25 void TestFlash::RunTests(const std::string& filter) { |
26 RUN_TEST(SetInstanceAlwaysOnTop, filter); | 26 RUN_TEST(SetInstanceAlwaysOnTop, filter); |
27 RUN_TEST(GetProxyForURL, filter); | 27 RUN_TEST(GetProxyForURL, filter); |
28 RUN_TEST(GetLocalTimeZoneOffset, filter); | 28 RUN_TEST(GetLocalTimeZoneOffset, filter); |
29 RUN_TEST(GetCommandLineArgs, filter); | 29 RUN_TEST(GetCommandLineArgs, filter); |
30 RUN_TEST(GetSetting, filter); | 30 RUN_TEST(GetSetting, filter); |
31 RUN_TEST(SetCrashData, filter); | 31 RUN_TEST(SetCrashData, filter); |
32 } | 32 } |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 114 |
115 PASS(); | 115 PASS(); |
116 } | 116 } |
117 | 117 |
118 std::string TestFlash::TestSetCrashData() { | 118 std::string TestFlash::TestSetCrashData() { |
119 pp::Var url("http://..."); | 119 pp::Var url("http://..."); |
120 ASSERT_TRUE(Flash::SetCrashData(instance_, PP_FLASHCRASHKEY_URL, url)); | 120 ASSERT_TRUE(Flash::SetCrashData(instance_, PP_FLASHCRASHKEY_URL, url)); |
121 | 121 |
122 PASS(); | 122 PASS(); |
123 } | 123 } |
OLD | NEW |