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)13inline 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)18inline 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)22inline 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