diff options
author | Googler <noreply@google.com> | 2019-05-08 14:39:08 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-05-08 14:40:09 -0700 |
commit | c3b6d4587edc1c04c86c2504b68a41b8c77fd202 (patch) | |
tree | 79a6ed8ce32b334037373fb858f6f9b453acb231 /test | |
parent | bfd9f75ba4390de824d2c3d44c15bdca9dd0ff35 (diff) |
Fix types that are subtly incorrect.
PiperOrigin-RevId: 247294093
Change-Id: Iac8c76e50bbc15c240ae7da7f5786f9968e7057c
Diffstat (limited to 'test')
-rw-r--r-- | test/syscalls/linux/raw_socket_ipv4.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/syscalls/linux/raw_socket_ipv4.cc b/test/syscalls/linux/raw_socket_ipv4.cc index f30fb8fe3..7c7779f3e 100644 --- a/test/syscalls/linux/raw_socket_ipv4.cc +++ b/test/syscalls/linux/raw_socket_ipv4.cc @@ -175,7 +175,7 @@ TEST_F(RawSocketTest, MultipleSocketReceive) { // Receive on socket 1. constexpr int kBufSize = sizeof(icmp) + sizeof(struct iphdr); - std::vector<char[kBufSize]> recv_buf1(2); + std::array<char[kBufSize], 2> recv_buf1; struct sockaddr_in src; for (int i = 0; i < 2; i++) { ASSERT_NO_FATAL_FAILURE(ReceiveICMP(recv_buf1[i], @@ -185,7 +185,7 @@ TEST_F(RawSocketTest, MultipleSocketReceive) { } // Receive on socket 2. - std::vector<char[kBufSize]> recv_buf2(2); + std::array<char[kBufSize], 2> recv_buf2; for (int i = 0; i < 2; i++) { ASSERT_NO_FATAL_FAILURE( ReceiveICMPFrom(recv_buf2[i], ABSL_ARRAYSIZE(recv_buf2[i]), @@ -234,7 +234,7 @@ TEST_F(RawSocketTest, RawAndPingSockets) { // Receive on socket 1, which receives the echo request and reply in // indeterminate order. constexpr int kBufSize = sizeof(icmp) + sizeof(struct iphdr); - std::vector<char[kBufSize]> recv_buf1(2); + std::array<char[kBufSize], 2> recv_buf1; struct sockaddr_in src; for (int i = 0; i < 2; i++) { ASSERT_NO_FATAL_FAILURE( |