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

Side by Side Diff: ppapi/tests/test_transport.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/tests/test_flash.cc ('k') | ppapi/tests/test_utils.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) 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_transport.h" 5 #include "ppapi/tests/test_transport.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include <list> 10 #include <list>
11 #include <map> 11 #include <map>
12 12
13 #include "ppapi/c/dev/ppb_testing_dev.h" 13 #include "ppapi/c/dev/ppb_testing_dev.h"
14 #include "ppapi/c/pp_errors.h" 14 #include "ppapi/c/pp_errors.h"
15 #include "ppapi/c/pp_macros.h"
15 #include "ppapi/cpp/completion_callback.h" 16 #include "ppapi/cpp/completion_callback.h"
16 #include "ppapi/cpp/dev/transport_dev.h" 17 #include "ppapi/cpp/dev/transport_dev.h"
17 #include "ppapi/cpp/instance.h" 18 #include "ppapi/cpp/instance.h"
18 #include "ppapi/cpp/module.h" 19 #include "ppapi/cpp/module.h"
19 #include "ppapi/cpp/var.h" 20 #include "ppapi/cpp/var.h"
20 #include "ppapi/tests/test_utils.h" 21 #include "ppapi/tests/test_utils.h"
21 #include "ppapi/tests/testing_instance.h" 22 #include "ppapi/tests/testing_instance.h"
22 23
23 REGISTER_TEST_CASE(Transport); 24 REGISTER_TEST_CASE(Transport);
24 25
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 // Close the transport and verify that callback is aborted. 370 // Close the transport and verify that callback is aborted.
370 ASSERT_EQ(transport1_->Close(), PP_OK); 371 ASSERT_EQ(transport1_->Close(), PP_OK);
371 372
372 ASSERT_EQ(recv_cb.run_count(), 1); 373 ASSERT_EQ(recv_cb.run_count(), 1);
373 ASSERT_EQ(recv_cb.result(), PP_ERROR_ABORTED); 374 ASSERT_EQ(recv_cb.result(), PP_ERROR_ABORTED);
374 375
375 Clean(); 376 Clean();
376 377
377 PASS(); 378 PASS();
378 } 379 }
OLDNEW
« no previous file with comments | « ppapi/tests/test_flash.cc ('k') | ppapi/tests/test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698