#include "base/test/launcher/test_launcher_test_utils.h"
#include <optional>
#include "base/files/file_util.h"
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
#include "base/test/gtest_util.h"
#include "base/test/launcher/test_result.h"
namespace base {
namespace test_launcher_utils {
namespace {
std::string FindStringKeyOrEmpty(const Value::Dict& dict,
const std::string& key) { … }
const testing::TestSuite* GetTestSuite(const std::string& test_suite_name) { … }
}
bool ValidateKeyValue(const Value::Dict& dict,
const std::string& key,
const std::string& expected_value) { … }
bool ValidateKeyValue(const Value::Dict& dict,
const std::string& key,
int64_t expected_value) { … }
bool ValidateTestResult(const Value::Dict& iteration_data,
const std::string& test_name,
const std::string& status,
size_t result_part_count,
bool have_running_info) { … }
bool ValidateTestLocations(const Value::Dict& test_locations,
const std::string& test_suite_name) { … }
bool ValidateTestLocation(const Value::Dict& test_locations,
const std::string& test_name,
const std::string& file,
int line) { … }
std::optional<Value::Dict> ReadSummary(const FilePath& path) { … }
}
}