blob: 3cb13933e51496e41d52a179af1d885df11067e0 [file] [log] [blame]
QUICHE teama6ef0a62019-03-07 20:34:33 -05001// 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 QUICHE_QUIC_PLATFORM_API_QUIC_TEST_OUTPUT_H_
6#define QUICHE_QUIC_PLATFORM_API_QUIC_TEST_OUTPUT_H_
7
8#include "net/third_party/quiche/src/quic/platform/api/quic_string_piece.h"
9#include "net/quic/platform/impl/quic_test_output_impl.h"
10
11namespace quic {
12
13// Records a QUIC test output file into a directory specified by QUIC_TRACE_DIR
14// environment variable. Assumes that it's called from a unit test.
15//
16// The |identifier| is a human-readable identifier that will be combined with
17// the name of the unit test and a timestamp. |data| is the test output data
18// that is being recorded into the file.
19inline void QuicRecordTestOutput(QuicStringPiece identifier,
20 QuicStringPiece data) {
21 QuicRecordTestOutputImpl(identifier, data);
22}
23
24} // namespace quic
25#endif // QUICHE_QUIC_PLATFORM_API_QUIC_TEST_OUTPUT_H_