xref: /aosp_15_r20/external/cronet/net/third_party/quiche/src/quiche/quic/platform/api/quic_test_output.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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 QUICHE_QUIC_PLATFORM_API_QUIC_TEST_OUTPUT_H_
6 #define QUICHE_QUIC_PLATFORM_API_QUIC_TEST_OUTPUT_H_
7 
8 #include "absl/strings/string_view.h"
9 #include "quiche/common/platform/api/quiche_test_output.h"
10 
11 namespace quic {
12 
QuicSaveTestOutput(absl::string_view filename,absl::string_view data)13 inline void QuicSaveTestOutput(absl::string_view filename,
14                                absl::string_view data) {
15   quiche::QuicheSaveTestOutput(filename, data);
16 }
17 
QuicLoadTestOutput(absl::string_view filename,std::string * data)18 inline bool QuicLoadTestOutput(absl::string_view filename, std::string* data) {
19   return quiche::QuicheLoadTestOutput(filename, data);
20 }
21 
QuicRecordTrace(absl::string_view identifier,absl::string_view data)22 inline void QuicRecordTrace(absl::string_view identifier,
23                             absl::string_view data) {
24   quiche::QuicheRecordTrace(identifier, data);
25 }
26 
27 }  // namespace quic
28 #endif  // QUICHE_QUIC_PLATFORM_API_QUIC_TEST_OUTPUT_H_
29