OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |