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

Side by Side Diff: webrtc/api/proxy_unittest.cc

Issue 2023373002: Separating internal and external methods of RtpSender/RtpReceiver. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Renaming "ProxyTo<X>" to "ProxyWithInternal<X>" Created 4 years, 6 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/api/proxy.h ('k') | webrtc/api/rtpreceiver.h » ('j') | 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 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
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
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
OLDNEW
« no previous file with comments | « webrtc/api/proxy.h ('k') | webrtc/api/rtpreceiver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698