#include "test/test_transport_listener.h"
#include <utility>
#include "ipcz/driver_object.h"
#include "ipcz/driver_transport.h"
#include "ipcz/message.h"
#include "ipcz/node.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/abseil-cpp/absl/base/macros.h"
#include "third_party/abseil-cpp/absl/synchronization/notification.h"
#include "util/ref_counted.h"
namespace ipcz::test {
class TestTransportListener::ListenerImpl : public DriverTransport::Listener { … };
TestTransportListener::TestTransportListener(IpczHandle node,
IpczDriverHandle handle)
: … { … }
TestTransportListener::TestTransportListener(Ref<DriverTransport> transport)
: … { … }
TestTransportListener::~TestTransportListener() { … }
void TestTransportListener::StopListening() { … }
void TestTransportListener::OnRawMessage(GenericMessageHandler handler) { … }
void TestTransportListener::OnStringMessage(
std::function<void(std::string_view)> handler) { … }
void TestTransportListener::OnError(ErrorHandler handler) { … }
void TestTransportListener::ActivateTransportIfNecessary() { … }
}