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

Side by Side Diff: base/callback_list_unittest.nc

Issue 1550063002: Remove base/basictypes.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-base
Patch Set: Created 4 years, 12 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // This is a "No Compile Test" suite. 5 // This is a "No Compile Test" suite.
6 // http://dev.chromium.org/developers/testing/no-compile-tests 6 // http://dev.chromium.org/developers/testing/no-compile-tests
7 7
8 #include "base/callback_list.h" 8 #include "base/callback_list.h"
9 9
10 #include "base/basictypes.h"
11 #include "base/bind.h" 10 #include "base/bind.h"
12 #include "base/bind_helpers.h" 11 #include "base/bind_helpers.h"
13 #include "base/macros.h" 12 #include "base/macros.h"
14 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
15 14
16 namespace base { 15 namespace base {
17 16
18 class Foo { 17 class Foo {
19 public: 18 public:
20 Foo() {} 19 Foo() {}
(...skipping 25 matching lines...) Expand all
46 FooListener f; 45 FooListener f;
47 CallbackList<void(scoped_ptr<Foo>)> c1; 46 CallbackList<void(scoped_ptr<Foo>)> c1;
48 scoped_ptr<CallbackList<void(scoped_ptr<Foo>)>::Subscription> sub = 47 scoped_ptr<CallbackList<void(scoped_ptr<Foo>)>::Subscription> sub =
49 c1.Add(Bind(&FooListener::GotAScopedFoo, Unretained(&f))); 48 c1.Add(Bind(&FooListener::GotAScopedFoo, Unretained(&f)));
50 c1.Notify(scoped_ptr<Foo>(new Foo())); 49 c1.Notify(scoped_ptr<Foo>(new Foo()));
51 } 50 }
52 51
53 #endif 52 #endif
54 53
55 } // namespace base 54 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698