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

Side by Side Diff: webrtc/base/sigslottester.h

Issue 2551813002: Use RTC_DISALLOW_COPY_AND_ASSIGN in webrtc/base/sigslottester.h (Closed)
Patch Set: Created 4 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
« no previous file with comments | « webrtc/base/BUILD.gn ('k') | webrtc/base/sigslottester.h.pump » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This file was GENERATED by command: 1 // This file was GENERATED by command:
2 // pump.py sigslottester.h.pump 2 // pump.py sigslottester.h.pump
3 // DO NOT EDIT BY HAND!!! 3 // DO NOT EDIT BY HAND!!!
4 4
5 /* 5 /*
6 * Copyright 2014 The WebRTC Project Authors. All rights reserved. 6 * Copyright 2014 The WebRTC Project Authors. All rights reserved.
7 * 7 *
8 * Use of this source code is governed by a BSD-style license 8 * Use of this source code is governed by a BSD-style license
9 * that can be found in the LICENSE file in the root of the source 9 * that can be found in the LICENSE file in the root of the source
10 * tree. An additional intellectual property rights grant can be found 10 * tree. An additional intellectual property rights grant can be found
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 explicit SigslotTester0(sigslot::signal0<>* signal) : callback_count_(0) { 50 explicit SigslotTester0(sigslot::signal0<>* signal) : callback_count_(0) {
51 signal->connect(this, &SigslotTester0::OnSignalCallback); 51 signal->connect(this, &SigslotTester0::OnSignalCallback);
52 } 52 }
53 53
54 int callback_count() const { return callback_count_; } 54 int callback_count() const { return callback_count_; }
55 55
56 private: 56 private:
57 void OnSignalCallback() { callback_count_++; } 57 void OnSignalCallback() { callback_count_++; }
58 int callback_count_; 58 int callback_count_;
59 59
60 DISALLOW_COPY_AND_ASSIGN(SigslotTester0); 60 RTC_DISALLOW_COPY_AND_ASSIGN(SigslotTester0);
61 }; 61 };
62 62
63 // Versions below are for testing signals that pass arguments. For all the 63 // Versions below are for testing signals that pass arguments. For all the
64 // templates below: 64 // templates below:
65 // - A1-A5 is the type of the argument i in the callback. Signals may and often 65 // - A1-A5 is the type of the argument i in the callback. Signals may and often
66 // do use const-references here for efficiency. 66 // do use const-references here for efficiency.
67 // - C1-C5 is the type of the variable to capture argument i. These should be 67 // - C1-C5 is the type of the variable to capture argument i. These should be
68 // non-const value types suitable for use as lvalues. 68 // non-const value types suitable for use as lvalues.
69 69
70 template <class A1, class C1> 70 template <class A1, class C1>
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 C2* capture2_; 207 C2* capture2_;
208 C3* capture3_; 208 C3* capture3_;
209 C4* capture4_; 209 C4* capture4_;
210 C5* capture5_; 210 C5* capture5_;
211 211
212 RTC_DISALLOW_COPY_AND_ASSIGN(SigslotTester5); 212 RTC_DISALLOW_COPY_AND_ASSIGN(SigslotTester5);
213 }; 213 };
214 } // namespace rtc 214 } // namespace rtc
215 215
216 #endif // WEBRTC_BASE_SIGSLOTTESTER_H_ 216 #endif // WEBRTC_BASE_SIGSLOTTESTER_H_
OLDNEW
« no previous file with comments | « webrtc/base/BUILD.gn ('k') | webrtc/base/sigslottester.h.pump » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698