1 // Copyright (c) 2019 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_TEST_TOOLS_SEND_ALGORITHM_TEST_UTILS_H_ 6 #define QUICHE_QUIC_TEST_TOOLS_SEND_ALGORITHM_TEST_UTILS_H_ 7 8 #include "quiche/quic/test_tools/send_algorithm_test_result.pb.h" 9 10 namespace quic { 11 namespace test { 12 13 bool LoadSendAlgorithmTestResult(SendAlgorithmTestResult* result); 14 15 void RecordSendAlgorithmTestResult(uint64_t random_seed, 16 int64_t simulated_duration_micros); 17 18 // Load the expected test result with LoadSendAlgorithmTestResult(), and compare 19 // it with the actual results provided in the arguments. 20 void CompareSendAlgorithmTestResult(int64_t actual_simulated_duration_micros); 21 22 std::string GetFullSendAlgorithmTestName(); 23 24 std::string GetSendAlgorithmTestResultFilename(); 25 26 } // namespace test 27 } // namespace quic 28 29 #endif // QUICHE_QUIC_TEST_TOOLS_SEND_ALGORITHM_TEST_UTILS_H_ 30