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

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

Issue 8885012: Replace PP_ALLOW_THIS_IN_INITIALIZER_LIST macro (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revise Created 9 years 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_transport.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/private/ppb_flash.h" 8 #include "ppapi/c/private/ppb_flash.h"
8 #include "ppapi/cpp/instance.h" 9 #include "ppapi/cpp/instance.h"
9 #include "ppapi/cpp/module.h" 10 #include "ppapi/cpp/module.h"
10 #include "ppapi/cpp/var.h" 11 #include "ppapi/cpp/var.h"
11 #include "ppapi/tests/test_utils.h"
12 #include "ppapi/tests/testing_instance.h" 12 #include "ppapi/tests/testing_instance.h"
13 13
14 REGISTER_TEST_CASE(Flash); 14 REGISTER_TEST_CASE(Flash);
15 15
16 using pp::Var; 16 using pp::Var;
17 17
18 TestFlash::TestFlash(TestingInstance* instance) 18 TestFlash::TestFlash(TestingInstance* instance)
19 : TestCase(instance), 19 : TestCase(instance),
20 PP_ALLOW_THIS_IN_INITIALIZER_LIST(callback_factory_(this)) { 20 PP_ALLOW_THIS_IN_INITIALIZER_LIST(callback_factory_(this)) {
21 } 21 }
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 flash_interface_->GetCommandLineArgs( 95 flash_interface_->GetCommandLineArgs(
96 pp::Module::Get()->pp_module())); 96 pp::Module::Get()->pp_module()));
97 ASSERT_TRUE(result.is_string()); 97 ASSERT_TRUE(result.is_string());
98 98
99 PASS(); 99 PASS();
100 } 100 }
101 101
102 void TestFlash::QuitMessageLoopTask(int32_t) { 102 void TestFlash::QuitMessageLoopTask(int32_t) {
103 flash_interface_->QuitMessageLoop(instance_->pp_instance()); 103 flash_interface_->QuitMessageLoop(instance_->pp_instance());
104 } 104 }
OLDNEW
« no previous file with comments | « ppapi/c/pp_macros.h ('k') | ppapi/tests/test_transport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698