Andrew Top | 0d1858f | 2019-05-15 22:01:47 -0700 | [diff] [blame] | 1 | // Copyright (c) 2018 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef NET_THIRD_PARTY_QUIC_PLATFORM_API_QUIC_TEST_OUTPUT_H_ |
| 6 | #define NET_THIRD_PARTY_QUIC_PLATFORM_API_QUIC_TEST_OUTPUT_H_ |
| 7 | |
| 8 | #include "net/third_party/quic/platform/api/quic_string_piece.h" |
| 9 | #include "net/third_party/quic/platform/impl/quic_test_output_impl.h" |
| 10 | |
| 11 | namespace quic { |
| 12 | |
Chad Duffin | ac9ac06 | 2019-07-23 10:06:45 -0700 | [diff] [blame] | 13 | #if !defined(STARBOARD) |
| 14 | |
Andrew Top | 0d1858f | 2019-05-15 22:01:47 -0700 | [diff] [blame] | 15 | // Records a QUIC test output file into a directory specified by QUIC_TRACE_DIR |
| 16 | // environment variable. Assumes that it's called from a unit test. |
| 17 | // |
| 18 | // The |identifier| is a human-readable identifier that will be combined with |
| 19 | // the name of the unit test and a timestamp. |data| is the test output data |
| 20 | // that is being recorded into the file. |
| 21 | inline void QuicRecordTestOutput(QuicStringPiece identifier, |
| 22 | QuicStringPiece data) { |
| 23 | QuicRecordTestOutputImpl(identifier, data); |
| 24 | } |
| 25 | |
Chad Duffin | ac9ac06 | 2019-07-23 10:06:45 -0700 | [diff] [blame] | 26 | #endif |
| 27 | |
Andrew Top | 0d1858f | 2019-05-15 22:01:47 -0700 | [diff] [blame] | 28 | } // namespace quic |
| 29 | #endif // NET_THIRD_PARTY_QUIC_PLATFORM_API_QUIC_TEST_OUTPUT_H_ |