#ifndef QUICHE_COMMON_TEST_TOOLS_QUICHE_TEST_UTILS_H_
#define QUICHE_COMMON_TEST_TOOLS_QUICHE_TEST_UTILS_H_
#include <string>
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include "quiche/common/platform/api/quiche_iovec.h"
#include "quiche/common/platform/api/quiche_test.h"
namespace quiche {
namespace test {
void CompareCharArraysWithHexError(const std::string& description,
const char* actual, const int actual_len,
const char* expected,
const int expected_len);
iovec MakeIOVector(absl::string_view str);
bool GoogleUrlSupportsIdnaForTest();
inline const absl::Status& ExtractStatus(const absl::Status& status) { … }
template <typename T>
const absl::Status& ExtractStatus(const absl::StatusOr<T>& status_or) { … }
MATCHER(IsOk, "Checks if an instance of absl::Status is ok.") { … }
MATCHER_P(IsOkAndHolds, matcher,
"Matcher against the inner value of absl::StatusOr") { … }
MATCHER_P(StatusIs, code, "Matcher against only a specific status code") { … }
MATCHER_P2(StatusIs, code, matcher, "Matcher against a specific status code") { … }
#define QUICHE_EXPECT_OK(arg) …
#define QUICHE_ASSERT_OK(arg) …
}
}
#endif