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

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

Issue 1345433002: Add RTC_ prefix to contructormagic macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Formatting fix. Created 5 years, 3 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
« no previous file with comments | « webrtc/base/signalthread_unittest.cc ('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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 private: 65 private:
66 void OnSignalCallback(A1 arg1) { 66 void OnSignalCallback(A1 arg1) {
67 callback_count_++; 67 callback_count_++;
68 *capture1_ = arg1; 68 *capture1_ = arg1;
69 } 69 }
70 70
71 int callback_count_; 71 int callback_count_;
72 C1* capture1_; 72 C1* capture1_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(SigslotTester1); 74 RTC_DISALLOW_COPY_AND_ASSIGN(SigslotTester1);
75 }; 75 };
76 76
77 template <class A1, class A2, class C1, class C2> 77 template <class A1, class A2, class C1, class C2>
78 class SigslotTester2 : public sigslot::has_slots<> { 78 class SigslotTester2 : public sigslot::has_slots<> {
79 public: 79 public:
80 SigslotTester2(sigslot::signal2<A1, A2>* signal, 80 SigslotTester2(sigslot::signal2<A1, A2>* signal,
81 C1* capture1, C2* capture2) 81 C1* capture1, C2* capture2)
82 : callback_count_(0), 82 : callback_count_(0),
83 capture1_(capture1), capture2_(capture2) { 83 capture1_(capture1), capture2_(capture2) {
84 signal->connect(this, &SigslotTester2::OnSignalCallback); 84 signal->connect(this, &SigslotTester2::OnSignalCallback);
85 } 85 }
86 86
87 int callback_count() const { return callback_count_; } 87 int callback_count() const { return callback_count_; }
88 88
89 private: 89 private:
90 void OnSignalCallback(A1 arg1, A2 arg2) { 90 void OnSignalCallback(A1 arg1, A2 arg2) {
91 callback_count_++; 91 callback_count_++;
92 *capture1_ = arg1; 92 *capture1_ = arg1;
93 *capture2_ = arg2; 93 *capture2_ = arg2;
94 } 94 }
95 95
96 int callback_count_; 96 int callback_count_;
97 C1* capture1_; 97 C1* capture1_;
98 C2* capture2_; 98 C2* capture2_;
99 99
100 DISALLOW_COPY_AND_ASSIGN(SigslotTester2); 100 RTC_DISALLOW_COPY_AND_ASSIGN(SigslotTester2);
101 }; 101 };
102 102
103 template <class A1, class A2, class A3, class C1, class C2, class C3> 103 template <class A1, class A2, class A3, class C1, class C2, class C3>
104 class SigslotTester3 : public sigslot::has_slots<> { 104 class SigslotTester3 : public sigslot::has_slots<> {
105 public: 105 public:
106 SigslotTester3(sigslot::signal3<A1, A2, A3>* signal, 106 SigslotTester3(sigslot::signal3<A1, A2, A3>* signal,
107 C1* capture1, C2* capture2, C3* capture3) 107 C1* capture1, C2* capture2, C3* capture3)
108 : callback_count_(0), 108 : callback_count_(0),
109 capture1_(capture1), capture2_(capture2), capture3_(capture3) { 109 capture1_(capture1), capture2_(capture2), capture3_(capture3) {
110 signal->connect(this, &SigslotTester3::OnSignalCallback); 110 signal->connect(this, &SigslotTester3::OnSignalCallback);
111 } 111 }
112 112
113 int callback_count() const { return callback_count_; } 113 int callback_count() const { return callback_count_; }
114 114
115 private: 115 private:
116 void OnSignalCallback(A1 arg1, A2 arg2, A3 arg3) { 116 void OnSignalCallback(A1 arg1, A2 arg2, A3 arg3) {
117 callback_count_++; 117 callback_count_++;
118 *capture1_ = arg1; 118 *capture1_ = arg1;
119 *capture2_ = arg2; 119 *capture2_ = arg2;
120 *capture3_ = arg3; 120 *capture3_ = arg3;
121 } 121 }
122 122
123 int callback_count_; 123 int callback_count_;
124 C1* capture1_; 124 C1* capture1_;
125 C2* capture2_; 125 C2* capture2_;
126 C3* capture3_; 126 C3* capture3_;
127 127
128 DISALLOW_COPY_AND_ASSIGN(SigslotTester3); 128 RTC_DISALLOW_COPY_AND_ASSIGN(SigslotTester3);
129 }; 129 };
130 130
131 template <class A1, class A2, class A3, class A4, class C1, class C2, class C3, 131 template <class A1, class A2, class A3, class A4, class C1, class C2, class C3,
132 class C4> 132 class C4>
133 class SigslotTester4 : public sigslot::has_slots<> { 133 class SigslotTester4 : public sigslot::has_slots<> {
134 public: 134 public:
135 SigslotTester4(sigslot::signal4<A1, A2, A3, A4>* signal, 135 SigslotTester4(sigslot::signal4<A1, A2, A3, A4>* signal,
136 C1* capture1, C2* capture2, C3* capture3, C4* capture4) 136 C1* capture1, C2* capture2, C3* capture3, C4* capture4)
137 : callback_count_(0), 137 : callback_count_(0),
138 capture1_(capture1), capture2_(capture2), capture3_(capture3), 138 capture1_(capture1), capture2_(capture2), capture3_(capture3),
(...skipping 11 matching lines...) Expand all
150 *capture3_ = arg3; 150 *capture3_ = arg3;
151 *capture4_ = arg4; 151 *capture4_ = arg4;
152 } 152 }
153 153
154 int callback_count_; 154 int callback_count_;
155 C1* capture1_; 155 C1* capture1_;
156 C2* capture2_; 156 C2* capture2_;
157 C3* capture3_; 157 C3* capture3_;
158 C4* capture4_; 158 C4* capture4_;
159 159
160 DISALLOW_COPY_AND_ASSIGN(SigslotTester4); 160 RTC_DISALLOW_COPY_AND_ASSIGN(SigslotTester4);
161 }; 161 };
162 162
163 template <class A1, class A2, class A3, class A4, class A5, class C1, class C2, 163 template <class A1, class A2, class A3, class A4, class A5, class C1, class C2,
164 class C3, class C4, class C5> 164 class C3, class C4, class C5>
165 class SigslotTester5 : public sigslot::has_slots<> { 165 class SigslotTester5 : public sigslot::has_slots<> {
166 public: 166 public:
167 SigslotTester5(sigslot::signal5<A1, A2, A3, A4, A5>* signal, 167 SigslotTester5(sigslot::signal5<A1, A2, A3, A4, A5>* signal,
168 C1* capture1, C2* capture2, C3* capture3, C4* capture4, 168 C1* capture1, C2* capture2, C3* capture3, C4* capture4,
169 C5* capture5) 169 C5* capture5)
170 : callback_count_(0), 170 : callback_count_(0),
(...skipping 14 matching lines...) Expand all
185 *capture5_ = arg5; 185 *capture5_ = arg5;
186 } 186 }
187 187
188 int callback_count_; 188 int callback_count_;
189 C1* capture1_; 189 C1* capture1_;
190 C2* capture2_; 190 C2* capture2_;
191 C3* capture3_; 191 C3* capture3_;
192 C4* capture4_; 192 C4* capture4_;
193 C5* capture5_; 193 C5* capture5_;
194 194
195 DISALLOW_COPY_AND_ASSIGN(SigslotTester5); 195 RTC_DISALLOW_COPY_AND_ASSIGN(SigslotTester5);
196 }; 196 };
197 } // namespace rtc 197 } // namespace rtc
198 198
199 #endif // WEBRTC_BASE_SIGSLOTTESTER_H_ 199 #endif // WEBRTC_BASE_SIGSLOTTESTER_H_
OLDNEW
« no previous file with comments | « webrtc/base/signalthread_unittest.cc ('k') | webrtc/base/sigslottester.h.pump » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698