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

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

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/sigslottester.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2014 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2014 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 explicit SigslotTester0(sigslot::signal0<>* signal) : callback_count_(0) { 46 explicit SigslotTester0(sigslot::signal0<>* signal) : callback_count_(0) {
47 signal->connect(this, &SigslotTester0::OnSignalCallback); 47 signal->connect(this, &SigslotTester0::OnSignalCallback);
48 } 48 }
49 49
50 int callback_count() const { return callback_count_; } 50 int callback_count() const { return callback_count_; }
51 51
52 private: 52 private:
53 void OnSignalCallback() { callback_count_++; } 53 void OnSignalCallback() { callback_count_++; }
54 int callback_count_; 54 int callback_count_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(SigslotTester0); 56 RTC_DISALLOW_COPY_AND_ASSIGN(SigslotTester0);
57 }; 57 };
58 58
59 // Versions below are for testing signals that pass arguments. For all the 59 // Versions below are for testing signals that pass arguments. For all the
60 // templates below: 60 // templates below:
61 // - A1-A5 is the type of the argument i in the callback. Signals may and often 61 // - A1-A5 is the type of the argument i in the callback. Signals may and often
62 // do use const-references here for efficiency. 62 // do use const-references here for efficiency.
63 // - C1-C5 is the type of the variable to capture argument i. These should be 63 // - C1-C5 is the type of the variable to capture argument i. These should be
64 // non-const value types suitable for use as lvalues. 64 // non-const value types suitable for use as lvalues.
65 65
66 $var n = 5 66 $var n = 5
(...skipping 26 matching lines...) Expand all
93 C$j* capture$j[[]]_;]] 93 C$j* capture$j[[]]_;]]
94 94
95 95
96 RTC_DISALLOW_COPY_AND_ASSIGN(SigslotTester$i); 96 RTC_DISALLOW_COPY_AND_ASSIGN(SigslotTester$i);
97 }; 97 };
98 98
99 ]] 99 ]]
100 } // namespace rtc 100 } // namespace rtc
101 101
102 #endif // WEBRTC_BASE_SIGSLOTTESTER_H_ 102 #endif // WEBRTC_BASE_SIGSLOTTESTER_H_
OLDNEW
« no previous file with comments | « webrtc/base/sigslottester.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698