aboutsummaryrefslogtreecommitdiff
path: root/pc/proxy_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'pc/proxy_unittest.cc')
-rw-r--r--pc/proxy_unittest.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/pc/proxy_unittest.cc b/pc/proxy_unittest.cc
index fdc7dc3e70..ef3d97eddc 100644
--- a/pc/proxy_unittest.cc
+++ b/pc/proxy_unittest.cc
@@ -8,7 +8,7 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#include "api/proxy.h"
+#include "pc/proxy.h"
#include <memory>
#include <string>
@@ -43,7 +43,7 @@ class FakeInterface : public rtc::RefCountInterface {
class Fake : public FakeInterface {
public:
static rtc::scoped_refptr<Fake> Create() {
- return new rtc::RefCountedObject<Fake>();
+ return rtc::make_ref_counted<Fake>();
}
// Used to verify destructor is called on the correct thread.
MOCK_METHOD(void, Destroy, ());
@@ -71,7 +71,7 @@ PROXY_CONSTMETHOD0(std::string, ConstMethod0)
PROXY_SECONDARY_METHOD1(std::string, Method1, std::string)
PROXY_CONSTMETHOD1(std::string, ConstMethod1, std::string)
PROXY_SECONDARY_METHOD2(std::string, Method2, std::string, std::string)
-END_PROXY_MAP()
+END_PROXY_MAP(Fake)
// Preprocessor hack to get a proxy class a name different than FakeProxy.
#define FakeProxy FakeSignalingProxy
@@ -84,7 +84,7 @@ PROXY_CONSTMETHOD0(std::string, ConstMethod0)
PROXY_METHOD1(std::string, Method1, std::string)
PROXY_CONSTMETHOD1(std::string, ConstMethod1, std::string)
PROXY_METHOD2(std::string, Method2, std::string, std::string)
-END_PROXY_MAP()
+END_PROXY_MAP(Fake)
#undef FakeProxy
class SignalingProxyTest : public ::testing::Test {
@@ -272,7 +272,7 @@ class Foo : public FooInterface {
BEGIN_OWNED_PROXY_MAP(Foo)
PROXY_PRIMARY_THREAD_DESTRUCTOR()
PROXY_METHOD0(void, Bar)
-END_PROXY_MAP()
+END_PROXY_MAP(Foo)
class OwnedProxyTest : public ::testing::Test {
public: