3#include "../../SDL3/sdl_web_clip_offers.hpp"
5int TestSDLWebClipOffers(
int argc,
char* argv[])
10 const std::string local =
"copied in the browser";
11 const std::string remote =
"copied in the session";
15 if (!offers.offer(local,
nullptr, 0))
18 if (!offers.offer(local,
nullptr, 0))
25 std::ignore = offers.offer(local,
nullptr, 0);
26 offers.serverAnnounced();
27 if (offers.offer(local,
nullptr, 0))
30 if (!offers.offer(
"copied again in the browser",
nullptr, 0))
37 std::ignore = offers.offer(local,
nullptr, 0);
38 offers.serverAnnounced();
39 offers.serverSentText(remote);
40 if (offers.offer(remote,
nullptr, 0))
43 if (!offers.offer(local,
nullptr, 0))
50 const BYTE image[] = { 1, 2, 3 };
51 offers.serverAnnounced();
52 offers.serverSentText(remote);
53 if (!offers.offer(remote, image,
sizeof(image)))
59 const BYTE image[] = { 1, 2, 3 };
60 std::ignore = offers.offer(
"", image,
sizeof(image));
61 offers.serverAnnounced();
62 offers.serverSentImage();
63 if (!offers.offer(
"", image,
sizeof(image)))