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

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

Issue 324453003: PPAPI: Remove PP_ALLOW_THIS_IN_INITIALIZER_LIST (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/c/pp_macros.h ('k') | ppapi/tests/test_flash_drm.cc » ('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"
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
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 }
OLDNEW
« no previous file with comments | « ppapi/c/pp_macros.h ('k') | ppapi/tests/test_flash_drm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698