blob: 9516b9aa46fcb1109e28793b2266b7ebbbeadeff [file] [log] [blame]
Bence Békybac04052022-04-07 15:44:29 -04001// 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
10namespace quic {
11namespace test {
12
13bool LoadSendAlgorithmTestResult(SendAlgorithmTestResult* result);
14
15void 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.
20void CompareSendAlgorithmTestResult(int64_t actual_simulated_duration_micros);
21
22std::string GetFullSendAlgorithmTestName();
23
24std::string GetSendAlgorithmTestResultFilename();
25
26} // namespace test
27} // namespace quic
28
29#endif // QUICHE_QUIC_TEST_TOOLS_SEND_ALGORITHM_TEST_UTILS_H_