diff options
Diffstat (limited to 'dynamic-layers/selinux/android-tools/android-tools/core/0003-socket.h-removing-dependency-of-gtest.patch')
-rw-r--r-- | dynamic-layers/selinux/android-tools/android-tools/core/0003-socket.h-removing-dependency-of-gtest.patch | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/dynamic-layers/selinux/android-tools/android-tools/core/0003-socket.h-removing-dependency-of-gtest.patch b/dynamic-layers/selinux/android-tools/android-tools/core/0003-socket.h-removing-dependency-of-gtest.patch new file mode 100644 index 0000000..56c25ea --- /dev/null +++ b/dynamic-layers/selinux/android-tools/android-tools/core/0003-socket.h-removing-dependency-of-gtest.patch | |||
@@ -0,0 +1,61 @@ | |||
1 | From 4fdd086c2e9c85bc5a367a861696191e190cebc9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Nisha Parrakat <Nisha.Parrakat@kpit.com> | ||
3 | Date: Thu, 2 Mar 2023 17:20:48 +0100 | ||
4 | Subject: [PATCH 03/15] socket.h: removing dependency of gtest | ||
5 | |||
6 | Removed the dependency of gtest on the build of fastboot binary. | ||
7 | Fixes below error | ||
8 | |||
9 | In file included from fastboot/fastboot.cpp:70: | ||
10 | | In file included from fastboot/tcp.h:36: | ||
11 | | fastboot/socket.h:43:10: fatal error: 'gtest/gtest_prod.h' file not found | ||
12 | | #include <gtest/gtest_prod.h> | ||
13 | | ^~~~~~~~~~~~~~~~~~~~ | ||
14 | | 1 error generated. | ||
15 | | In file included from fastboot/socket.cpp:29: | ||
16 | | fastboot/socket.h:43:10: fatal error: 'gtest/gtest_prod.h' file not found | ||
17 | | #include <gtest/gtest_prod.h> | ||
18 | | ^~~~~~~~~~~~~~~~~~~~ | ||
19 | | 1 error generated. | ||
20 | | In file included from fastboot/tcp.cpp:29: | ||
21 | | In file included from fastboot/tcp.h:36: | ||
22 | | fastboot/socket.h:43:10: fatal error: 'gtest/gtest_prod.h' file not found | ||
23 | | #include <gtest/gtest_prod.h> | ||
24 | | ^~~~~~~~~~~~~~~~~~~~ | ||
25 | | 1 error generated. | ||
26 | | In file included from fastboot/udp.cpp:31: | ||
27 | | In file included from fastboot/udp.h:34: | ||
28 | | fastboot/socket.h:43:10: fatal error: 'gtest/gtest_prod.h' file not found | ||
29 | | #include <gtest/gtest_prod.h> | ||
30 | | ^~~~~~~~~~~~~~~~~~~~ | ||
31 | | 1 error generated. | ||
32 | |||
33 | Signed-off-by: Nisha Parrakat <Nisha.Parrakat@kpit.com> | ||
34 | --- | ||
35 | fastboot/socket.h | 3 --- | ||
36 | 1 file changed, 3 deletions(-) | ||
37 | |||
38 | diff --git a/fastboot/socket.h b/fastboot/socket.h | ||
39 | index e791f2c8..671fc115 100644 | ||
40 | --- a/fastboot/socket.h | ||
41 | +++ b/fastboot/socket.h | ||
42 | @@ -40,7 +40,6 @@ | ||
43 | |||
44 | #include <android-base/macros.h> | ||
45 | #include <cutils/sockets.h> | ||
46 | -#include <gtest/gtest_prod.h> | ||
47 | |||
48 | // Socket interface to be implemented for each platform. | ||
49 | class Socket { | ||
50 | @@ -119,8 +118,6 @@ class Socket { | ||
51 | socket_send_buffers_function_ = &socket_send_buffers; | ||
52 | |||
53 | private: | ||
54 | - FRIEND_TEST(SocketTest, TestTcpSendBuffers); | ||
55 | - FRIEND_TEST(SocketTest, TestUdpSendBuffers); | ||
56 | |||
57 | DISALLOW_COPY_AND_ASSIGN(Socket); | ||
58 | }; | ||
59 | -- | ||
60 | 2.36.1.vfs.0.0 | ||
61 | |||