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

Side by Side Diff: ppapi/tests/test_flash.cc

Issue 10681006: Add ppapi interface for setting crash data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/tests/test_flash.h ('k') | ppapi/thunk/interfaces_ppb_private_flash.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
(...skipping 17 matching lines...) Expand all
28 28
29 void TestFlash::RunTests(const std::string& filter) { 29 void TestFlash::RunTests(const std::string& filter) {
30 RUN_TEST(SetInstanceAlwaysOnTop, filter); 30 RUN_TEST(SetInstanceAlwaysOnTop, filter);
31 RUN_TEST(GetProxyForURL, filter); 31 RUN_TEST(GetProxyForURL, filter);
32 RUN_TEST(MessageLoop, filter); 32 RUN_TEST(MessageLoop, filter);
33 RUN_TEST(GetLocalTimeZoneOffset, filter); 33 RUN_TEST(GetLocalTimeZoneOffset, filter);
34 RUN_TEST(GetCommandLineArgs, filter); 34 RUN_TEST(GetCommandLineArgs, filter);
35 RUN_TEST(GetDeviceID, filter); 35 RUN_TEST(GetDeviceID, filter);
36 RUN_TEST(GetSettingInt, filter); 36 RUN_TEST(GetSettingInt, filter);
37 RUN_TEST(GetSetting, filter); 37 RUN_TEST(GetSetting, filter);
38 RUN_TEST(SetCrashData, filter);
38 } 39 }
39 40
40 std::string TestFlash::TestSetInstanceAlwaysOnTop() { 41 std::string TestFlash::TestSetInstanceAlwaysOnTop() {
41 flash_interface_->SetInstanceAlwaysOnTop(instance_->pp_instance(), PP_TRUE); 42 flash_interface_->SetInstanceAlwaysOnTop(instance_->pp_instance(), PP_TRUE);
42 flash_interface_->SetInstanceAlwaysOnTop(instance_->pp_instance(), PP_FALSE); 43 flash_interface_->SetInstanceAlwaysOnTop(instance_->pp_instance(), PP_FALSE);
43 PASS(); 44 PASS();
44 } 45 }
45 46
46 std::string TestFlash::TestGetProxyForURL() { 47 std::string TestFlash::TestGetProxyForURL() {
47 Var result(pp::PASS_REF, 48 Var result(pp::PASS_REF,
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 result = Var(pp::PASS_REF, 170 result = Var(pp::PASS_REF,
170 flash_interface_->GetSetting(0, PP_FLASHSETTING_INCOGNITO)); 171 flash_interface_->GetSetting(0, PP_FLASHSETTING_INCOGNITO));
171 ASSERT_TRUE(result.is_undefined()); 172 ASSERT_TRUE(result.is_undefined());
172 result = Var(pp::PASS_REF, 173 result = Var(pp::PASS_REF,
173 flash_interface_->GetSetting(0, PP_FLASHSETTING_STAGE3DENABLED)); 174 flash_interface_->GetSetting(0, PP_FLASHSETTING_STAGE3DENABLED));
174 ASSERT_TRUE(result.is_undefined()); 175 ASSERT_TRUE(result.is_undefined());
175 176
176 PASS(); 177 PASS();
177 } 178 }
178 179
180 std::string TestFlash::TestSetCrashData() {
181 pp::Var url("http://...");
182 ASSERT_TRUE(flash_interface_->SetCrashData(instance_->pp_instance(),
183 PP_FLASHCRASHKEY_URL,
184 url.pp_var()));
185
186 PASS();
187 }
188
179 void TestFlash::QuitMessageLoopTask(int32_t) { 189 void TestFlash::QuitMessageLoopTask(int32_t) {
180 flash_interface_->QuitMessageLoop(instance_->pp_instance()); 190 flash_interface_->QuitMessageLoop(instance_->pp_instance());
181 } 191 }
OLDNEW
« no previous file with comments | « ppapi/tests/test_flash.h ('k') | ppapi/thunk/interfaces_ppb_private_flash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698