arc: Move platform2/arc/network/ to platform2/patchpanel
Next step in the arc-networkd -> patchpanel rename, this patch moves the
location of the code.
BUG=b:151879931
TEST=units,flashed image to atlas
TEST=tasts arc.PlayStore, crostini.LaunchTerminal.download
Change-Id: I1b5cf8d670e1631d46f6449b725395157bf88dde
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/2115863
Tested-by: Garrick Evans <garrick@chromium.org>
Commit-Queue: Garrick Evans <garrick@chromium.org>
Reviewed-by: Hidehiko Abe <hidehiko@chromium.org>
Reviewed-by: Eric Caruso <ejcaruso@chromium.org>
Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
Reviewed-by: Hugo Benichi <hugobenichi@google.com>
diff --git a/system-proxy/server_proxy_test.cc b/system-proxy/server_proxy_test.cc
index 34c8a5e..a8d4cf9 100644
--- a/system-proxy/server_proxy_test.cc
+++ b/system-proxy/server_proxy_test.cc
@@ -55,7 +55,7 @@
class MockProxyConnectJob : public ProxyConnectJob {
public:
- MockProxyConnectJob(std::unique_ptr<arc_networkd::Socket> socket,
+ MockProxyConnectJob(std::unique_ptr<patchpanel::Socket> socket,
const std::string& credentials,
ResolveProxyCallback resolve_proxy_callback,
OnConnectionSetupFinishedCallback setup_finished_callback)
@@ -166,7 +166,7 @@
ipv4addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
auto client_socket =
- std::make_unique<arc_networkd::Socket>(AF_INET, SOCK_STREAM);
+ std::make_unique<patchpanel::Socket>(AF_INET, SOCK_STREAM);
EXPECT_TRUE(client_socket->Connect((const struct sockaddr*)&ipv4addr,
sizeof(ipv4addr)));
brillo_loop_.RunOnce(false);
@@ -220,7 +220,7 @@
// Create |connection_count| connections.
for (int i = 0; i < connection_count; ++i) {
auto client_socket =
- std::make_unique<arc_networkd::Socket>(AF_INET, SOCK_STREAM);
+ std::make_unique<patchpanel::Socket>(AF_INET, SOCK_STREAM);
auto mock_connect_job = std::make_unique<MockProxyConnectJob>(
std::move(client_socket), "" /* credentials */,
base::BindOnce([](const std::string& target_url,
@@ -243,10 +243,10 @@
// Resolve |success_count| successful connections.
for (int i = 0; i < success_count; ++i) {
- auto fwd = std::make_unique<arc_networkd::SocketForwarder>(
+ auto fwd = std::make_unique<patchpanel::SocketForwarder>(
"" /* thread name */,
- std::make_unique<arc_networkd::Socket>(AF_INET, SOCK_STREAM),
- std::make_unique<arc_networkd::Socket>(AF_INET, SOCK_STREAM));
+ std::make_unique<patchpanel::Socket>(AF_INET, SOCK_STREAM),
+ std::make_unique<patchpanel::Socket>(AF_INET, SOCK_STREAM));
fwd->Start();
auto job_iter = server_proxy_->pending_connect_jobs_.begin();
std::move(job_iter->second->setup_finished_callback_)