| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2013 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 PROXY_METHOD0(void, VoidMethod0) | 66 PROXY_METHOD0(void, VoidMethod0) |
| 67 PROXY_METHOD0(std::string, Method0) | 67 PROXY_METHOD0(std::string, Method0) |
| 68 PROXY_CONSTMETHOD0(std::string, ConstMethod0) | 68 PROXY_CONSTMETHOD0(std::string, ConstMethod0) |
| 69 PROXY_WORKER_METHOD1(std::string, Method1, std::string) | 69 PROXY_WORKER_METHOD1(std::string, Method1, std::string) |
| 70 PROXY_CONSTMETHOD1(std::string, ConstMethod1, std::string) | 70 PROXY_CONSTMETHOD1(std::string, ConstMethod1, std::string) |
| 71 PROXY_WORKER_METHOD2(std::string, Method2, std::string, std::string) | 71 PROXY_WORKER_METHOD2(std::string, Method2, std::string, std::string) |
| 72 END_PROXY() | 72 END_PROXY() |
| 73 | 73 |
| 74 // Preprocessor hack to get a proxy class a name different than FakeProxy. | 74 // Preprocessor hack to get a proxy class a name different than FakeProxy. |
| 75 #define FakeProxy FakeSignalingProxy | 75 #define FakeProxy FakeSignalingProxy |
| 76 #define FakeProxyWithInternal FakeSignalingProxyWithInternal |
| 76 BEGIN_SIGNALING_PROXY_MAP(Fake) | 77 BEGIN_SIGNALING_PROXY_MAP(Fake) |
| 77 PROXY_METHOD0(void, VoidMethod0) | 78 PROXY_METHOD0(void, VoidMethod0) |
| 78 PROXY_METHOD0(std::string, Method0) | 79 PROXY_METHOD0(std::string, Method0) |
| 79 PROXY_CONSTMETHOD0(std::string, ConstMethod0) | 80 PROXY_CONSTMETHOD0(std::string, ConstMethod0) |
| 80 PROXY_METHOD1(std::string, Method1, std::string) | 81 PROXY_METHOD1(std::string, Method1, std::string) |
| 81 PROXY_CONSTMETHOD1(std::string, ConstMethod1, std::string) | 82 PROXY_CONSTMETHOD1(std::string, ConstMethod1, std::string) |
| 82 PROXY_METHOD2(std::string, Method2, std::string, std::string) | 83 PROXY_METHOD2(std::string, Method2, std::string, std::string) |
| 83 END_SIGNALING_PROXY() | 84 END_SIGNALING_PROXY() |
| 84 #undef FakeProxy | 85 #undef FakeProxy |
| 85 | 86 |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 const std::string arg1 = "arg1"; | 230 const std::string arg1 = "arg1"; |
| 230 const std::string arg2 = "arg2"; | 231 const std::string arg2 = "arg2"; |
| 231 EXPECT_CALL(*fake_, Method2(arg1, arg2)) | 232 EXPECT_CALL(*fake_, Method2(arg1, arg2)) |
| 232 .Times(Exactly(1)) | 233 .Times(Exactly(1)) |
| 233 .WillOnce(DoAll(InvokeWithoutArgs(this, &ProxyTest::CheckWorkerThread), | 234 .WillOnce(DoAll(InvokeWithoutArgs(this, &ProxyTest::CheckWorkerThread), |
| 234 Return("Method2"))); | 235 Return("Method2"))); |
| 235 EXPECT_EQ("Method2", fake_proxy_->Method2(arg1, arg2)); | 236 EXPECT_EQ("Method2", fake_proxy_->Method2(arg1, arg2)); |
| 236 } | 237 } |
| 237 | 238 |
| 238 } // namespace webrtc | 239 } // namespace webrtc |
| OLD | NEW |