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