aboutsummaryrefslogtreecommitdiff
path: root/osp
diff options
context:
space:
mode:
authorRyan Keane <rwkeane@google.com>2019-08-30 12:38:39 -0700
committerCommit Bot <commit-bot@chromium.org>2019-08-30 20:24:49 +0000
commit7d4b5fc6798f6c475a602a03a3a2352b5ec427fd (patch)
treea8b866ce68b6751f1cc56ebc3d5e8d9d3472aca4 /osp
parente5aac03db13a0767d22aa53fc8c609d8eecf41df (diff)
downloadopenscreen-7d4b5fc6798f6c475a602a03a3a2352b5ec427fd.tar.gz
Rename 'MockUdpSocket' to 'FakeUdpSocket'
Change-Id: I774dd6415d6c77a0a3f7a22d6a5d3d7438d40517 Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/1779149 Reviewed-by: Max Yakimakha <yakimakha@chromium.org> Commit-Queue: Ryan Keane <rwkeane@google.com>
Diffstat (limited to 'osp')
-rw-r--r--osp/impl/quic/testing/quic_test_support.cc4
-rw-r--r--osp/impl/quic/testing/quic_test_support.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/osp/impl/quic/testing/quic_test_support.cc b/osp/impl/quic/testing/quic_test_support.cc
index 474219c0..c1223986 100644
--- a/osp/impl/quic/testing/quic_test_support.cc
+++ b/osp/impl/quic/testing/quic_test_support.cc
@@ -26,7 +26,7 @@ FakeQuicBridge::FakeQuicBridge(platform::FakeTaskRunner* task_runner,
auto fake_client_factory =
std::make_unique<FakeClientQuicConnectionFactory>(fake_bridge.get());
- client_socket_ = std::make_unique<platform::MockUdpSocket>(
+ client_socket_ = std::make_unique<platform::FakeUdpSocket>(
task_runner_, fake_client_factory.get());
// TODO(rwkeane): Pass actual task runner instead of nullptr once the fake
@@ -37,7 +37,7 @@ FakeQuicBridge::FakeQuicBridge(platform::FakeTaskRunner* task_runner,
auto fake_server_factory =
std::make_unique<FakeServerQuicConnectionFactory>(fake_bridge.get());
- server_socket_ = std::make_unique<platform::MockUdpSocket>(
+ server_socket_ = std::make_unique<platform::FakeUdpSocket>(
task_runner_, fake_server_factory.get());
ServerConfig config;
config.connection_endpoints.push_back(kReceiverEndpoint);
diff --git a/osp/impl/quic/testing/quic_test_support.h b/osp/impl/quic/testing/quic_test_support.h
index 8a73ce9a..53ac48c3 100644
--- a/osp/impl/quic/testing/quic_test_support.h
+++ b/osp/impl/quic/testing/quic_test_support.h
@@ -20,7 +20,7 @@
#include "platform/base/ip_address.h"
#include "platform/impl/task_runner.h"
#include "platform/test/fake_clock.h"
-#include "platform/test/mock_udp_socket.h"
+#include "platform/test/fake_udp_socket.h"
namespace openscreen {
@@ -80,8 +80,8 @@ class FakeQuicBridge {
FakeServerQuicConnectionFactory* GetServerFactory();
platform::FakeTaskRunner* task_runner_;
- std::unique_ptr<platform::MockUdpSocket> client_socket_;
- std::unique_ptr<platform::MockUdpSocket> server_socket_;
+ std::unique_ptr<platform::FakeUdpSocket> client_socket_;
+ std::unique_ptr<platform::FakeUdpSocket> server_socket_;
};
} // namespace openscreen