#include "components/reporting/util/status_macros.h"
#include "base/debug/stack_trace.h"
#include "base/types/expected.h"
#include "components/reporting/util/status.h"
#include "components/reporting/util/statusor.h"
#include "testing/gtest/include/gtest/gtest-spi.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace reporting {
namespace {
Status StatusTestFunction(bool fail) { … }
Status ReturnIfErrorStatusWrapperFunction(bool fail) { … }
TEST(StatusMacros, ReturnsOnErrorStatus) { … }
TEST(StatusMacros, ReturnIfErrorStatusContinuesOnOk) { … }
base::unexpected<Status> UnexpectedStatusTestFunction(bool fail) { … }
StatusOr<int> ReturnIfErrorUnexpectedStatusWrapperFunction(bool fail) { … }
TEST(StatusMacros, ReturnsOnErrorUnexpectedStatus) { … }
TEST(StatusMacros, ReturnIfErrorUnexpectedStatusContinuesOnOk) { … }
TEST(StatusMacros, CheckOKOnStatus) { … }
TEST(StatusMacros, DCheckOKOnStatus) { … }
void AssertOKErrorStatus() { … }
TEST(StatusMacros, AssertOKOnStatus) { … }
void ExpectOKErrorStatus() { … }
TEST(StatusMacros, ExpectOKOnStatus) { … }
TEST(StatusMacros, CheckOKOnStatusOr) { … }
TEST(StatusMacros, DCheckOKOnStatusOr) { … }
void AssertOKErrorStatusOr() { … }
TEST(StatusMacros, AssertOKOnStatusOr) { … }
void ExpectOKErrorStatusOr() { … }
TEST(StatusMacros, ExpectOKOnStatusOr) { … }
}
}