#ifndef CONTENT_PUBLIC_TEST_PPAPI_TEST_UTILS_H_
#define CONTENT_PUBLIC_TEST_PPAPI_TEST_UTILS_H_
#include "base/files/file_path.h"
#include "base/functional/callback_forward.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "services/network/public/mojom/udp_socket.mojom.h"
namespace base {
class CommandLine;
}
namespace network {
namespace mojom {
class NetworkContext;
}
}
namespace ppapi {
[[nodiscard]] bool RegisterTestPlugin(base::CommandLine* command_line);
[[nodiscard]] bool RegisterTestPluginWithExtraParameters(
base::CommandLine* command_line,
const base::FilePath::StringType& extra_registration_parameters);
[[nodiscard]] bool RegisterBlinkTestPlugin(base::CommandLine* command_line);
using CreateUDPSocketCallback = base::RepeatingCallback<void(
network::mojom::NetworkContext* network_context,
mojo::PendingReceiver<network::mojom::UDPSocket> socket_receiver,
mojo::PendingRemote<network::mojom::UDPSocketListener> socket_listener)>;
void SetPepperTCPNetworkContextForTesting(
network::mojom::NetworkContext* network_context);
void SetPepperUDPSocketCallackForTesting(
const CreateUDPSocketCallback* create_udp_socket_callback);
}
#endif