diff options
author | Niels Möller <nisse@webrtc.org> | 2018-05-15 16:33:49 +0200 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2018-05-16 07:26:42 +0000 |
commit | e9c2088e409fbe8e2bafcef779ac5af5fed90630 (patch) | |
tree | 51fa00c83db1a9ecb135e99165af1dd6becaca28 /test | |
parent | 5f12f09492be2244dcfc3a49cef521d5aa6adf4b (diff) | |
download | webrtc-e9c2088e409fbe8e2bafcef779ac5af5fed90630.tar.gz |
Delete unused header file unittest_utils.h.
Became unused with cl https://webrtc-review.googlesource.com/40740,
and last spurious reference dropped in cl
https://webrtc-review.googlesource.com/43360.
Bug: None
Change-Id: Ib5f27a437c1ae8f7cc2df84d6d9eda8c297481d6
Reviewed-on: https://webrtc-review.googlesource.com/76981
Reviewed-by: Sergey Silkin <ssilkin@webrtc.org>
Reviewed-by: Patrik Höglund <phoglund@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23255}
Diffstat (limited to 'test')
-rw-r--r-- | test/BUILD.gn | 1 | ||||
-rw-r--r-- | test/testsupport/unittest_utils.h | 56 |
2 files changed, 0 insertions, 57 deletions
diff --git a/test/BUILD.gn b/test/BUILD.gn index fd6fa3c161..4d8df04356 100644 --- a/test/BUILD.gn +++ b/test/BUILD.gn @@ -172,7 +172,6 @@ rtc_source_set("test_support") { sources = [ "gmock.h", "gtest.h", - "testsupport/unittest_utils.h", ] public_deps = [] diff --git a/test/testsupport/unittest_utils.h b/test/testsupport/unittest_utils.h deleted file mode 100644 index 5fee2ca454..0000000000 --- a/test/testsupport/unittest_utils.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. - * - * Use of this source code is governed by a BSD-style license - * that can be found in the LICENSE file in the root of the source - * tree. An additional intellectual property rights grant can be found - * in the file PATENTS. All contributing project authors may - * be found in the AUTHORS file in the root of the source tree. - */ - -#ifndef TEST_TESTSUPPORT_UNITTEST_UTILS_H_ -#define TEST_TESTSUPPORT_UNITTEST_UTILS_H_ - -namespace webrtc { -namespace test { - -const size_t kPacketSizeInBytes = 1500; -const size_t kPacketDataLength = kPacketSizeInBytes * 2 + 1; -const int kPacketDataNumberOfPackets = 3; - -// A base test fixture for packet related tests. Contains -// two full prepared packets with 1s, 2s in their data and a third packet with -// a single 3 in it (size=1). -// A packet data structure is also available, that contains these three packets -// in order. -class PacketRelatedTest: public testing::Test { - protected: - // Tree packet byte arrays with data used for verification: - uint8_t packet1_[kPacketSizeInBytes]; - uint8_t packet2_[kPacketSizeInBytes]; - uint8_t packet3_[1]; - // Construct a data structure containing these packets - uint8_t packet_data_[kPacketDataLength]; - uint8_t* packet_data_pointer_; - - PacketRelatedTest() { - packet_data_pointer_ = packet_data_; - - memset(packet1_, 1, kPacketSizeInBytes); - memset(packet2_, 2, kPacketSizeInBytes); - memset(packet3_, 3, 1); - // Fill the packet_data: - memcpy(packet_data_pointer_, packet1_, kPacketSizeInBytes); - memcpy(packet_data_pointer_ + kPacketSizeInBytes, packet2_, - kPacketSizeInBytes); - memcpy(packet_data_pointer_ + kPacketSizeInBytes * 2, packet3_, 1); - } - virtual ~PacketRelatedTest() {} - void SetUp() {} - void TearDown() {} -}; - -} // namespace test -} // namespace webrtc - -#endif // TEST_TESTSUPPORT_UNITTEST_UTILS_H_ |