#include "base/types/optional_util.h"
#include <memory>
#include <optional>
#include <string>
#include "base/types/expected.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
namespace {
TEST(OptionalUtilTest, OptionalToPtr) { … }
TEST(OptionalUtilTest, OptionalFromPtr) { … }
TEST(OptionalUtilTest, OptionalToExpected) { … }
TEST(OptionalUtilTest, OptionalFromExpected) { … }
TEST(OptionalUtilTest, OptionalUnwrapTo_Basic) { … }
TEST(OptionalUtilTest, OptionalUnwrapTo_ProjectionLambda) { … }
TEST(OptionalUtilTest, OptionalUnwrapTo_ProjectionFunction) { … }
TEST(OptionalUtilTest, OptionalUnwrapTo_ProjectionMethod) { … }
TEST(OptionalUtilTest, OptionalUnwrapTo_ConstRefOptional) { … }
TEST(OptionalUtilTest, OptionalUnwrapTo_RvalueOptional) { … }
TEST(OptionalUtilTest, OptionalUnwrapTo_AssignableOutput) { … }
}
}