diff options
author | Hiroki Tagato <tagattie@FreeBSD.org> | 2022-06-22 06:53:47 +0000 |
---|---|---|
committer | Hiroki Tagato <tagattie@FreeBSD.org> | 2022-06-22 06:56:20 +0000 |
commit | 1780f894bd82243f6fe8b0795364f952ae10b9c1 (patch) | |
tree | a21d83d3dc4a29a9a3075605c851c55494a93f26 /devel/electron18/files/patch-net_socket_udp__socket__unittest.cc | |
parent | 0e6e415499814b667ce2ae5b30ad5b39b654ee88 (diff) | |
download | ports-1780f894bd82243f6fe8b0795364f952ae10b9c1.tar.gz ports-1780f894bd82243f6fe8b0795364f952ae10b9c1.zip |
devel/electron18: add port: Build cross-platform desktop apps with JavaScript, HTML, and CSS
Build cross platform desktop apps with JavaScript, HTML, and CSS.
It's easier than you think.
If you can build a website, you can build a desktop app. Electron is a
framework for creating native applications with web technologies like
JavaScript, HTML, and CSS. It takes care of the hard parts so you can
focus on the core of your application.
WWW: https://electronjs.org/
Requested by: mikael (via email)
Diffstat (limited to 'devel/electron18/files/patch-net_socket_udp__socket__unittest.cc')
-rw-r--r-- | devel/electron18/files/patch-net_socket_udp__socket__unittest.cc | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/devel/electron18/files/patch-net_socket_udp__socket__unittest.cc b/devel/electron18/files/patch-net_socket_udp__socket__unittest.cc new file mode 100644 index 000000000000..f2d8ceebdaad --- /dev/null +++ b/devel/electron18/files/patch-net_socket_udp__socket__unittest.cc @@ -0,0 +1,47 @@ +--- net/socket/udp_socket_unittest.cc.orig 2022-05-19 05:17:45 UTC ++++ net/socket/udp_socket_unittest.cc +@@ -324,7 +324,7 @@ TEST_F(UDPSocketTest, PartialRecv) { + EXPECT_EQ(second_packet, received); + } + +-#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_ANDROID) ++#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) + // - MacOS: requires root permissions on OSX 10.7+. + // - Android: devices attached to testbots don't have default network, so + // broadcasting to 255.255.255.255 returns error -109 (Address not reachable). +@@ -584,7 +584,7 @@ TEST_F(UDPSocketTest, ClientSetDoNotFragment) { + EXPECT_THAT(rv, IsOk()); + + rv = client.SetDoNotFragment(); +-#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_FUCHSIA) ++#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) + // TODO(crbug.com/945590): IP_MTU_DISCOVER is not implemented on Fuchsia. + EXPECT_THAT(rv, IsError(ERR_NOT_IMPLEMENTED)); + #else +@@ -606,7 +606,7 @@ TEST_F(UDPSocketTest, ServerSetDoNotFragment) { + EXPECT_THAT(rv, IsOk()); + + rv = server.SetDoNotFragment(); +-#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_FUCHSIA) ++#if BUILDFLAG(IS_APPLE) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD) + // TODO(crbug.com/945590): IP_MTU_DISCOVER is not implemented on Fuchsia. + EXPECT_THAT(rv, IsError(ERR_NOT_IMPLEMENTED)); + #else +@@ -665,7 +665,7 @@ TEST_F(UDPSocketTest, JoinMulticastGroup) { + + // TODO(https://crbug.com/947115): failing on device on iOS 12.2. + // TODO(https://crbug.com/1227554): flaky on Mac 11. +-#if BUILDFLAG(IS_IOS) || BUILDFLAG(IS_MAC) ++#if BUILDFLAG(IS_IOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_BSD) + #define MAYBE_SharedMulticastAddress DISABLED_SharedMulticastAddress + #else + #define MAYBE_SharedMulticastAddress SharedMulticastAddress +@@ -719,7 +719,7 @@ TEST_F(UDPSocketTest, MAYBE_SharedMulticastAddress) { + NetLogSource()); + ASSERT_THAT(client_socket.Connect(send_address), IsOk()); + +-#if !BUILDFLAG(IS_CHROMEOS_ASH) ++#if !BUILDFLAG(IS_CHROMEOS_ASH) && !BUILDFLAG(IS_BSD) + // Send a message via the multicast group. That message is expected be be + // received by both receving sockets. + // |