blob: e46cde8f60b4918184b71cede5ec920528882cb3 [file] [log] [blame]
Andrew Top0d1858f2019-05-15 22:01:47 -07001// 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
11namespace quic {
12
Chad Duffinac9ac062019-07-23 10:06:45 -070013#if !defined(STARBOARD)
14
Andrew Top0d1858f2019-05-15 22:01:47 -070015// 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.
21inline void QuicRecordTestOutput(QuicStringPiece identifier,
22 QuicStringPiece data) {
23 QuicRecordTestOutputImpl(identifier, data);
24}
25
Chad Duffinac9ac062019-07-23 10:06:45 -070026#endif
27
Andrew Top0d1858f2019-05-15 22:01:47 -070028} // namespace quic
29#endif // NET_THIRD_PARTY_QUIC_PLATFORM_API_QUIC_TEST_OUTPUT_H_