chromium/third_party/abseil-cpp/absl/status/status_test.cc

// Copyright 2019 The Abseil Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "absl/status/status.h"

#include <errno.h>

#include <array>
#include <cstddef>
#include <sstream>
#include <utility>

#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "absl/strings/cord.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_format.h"

namespace {

Eq;
HasSubstr;
Optional;
UnorderedElementsAreArray;

TEST(StatusCode, InsertionOperator) {}

// This structure holds the details for testing a single error code,
// its creator, and its classifier.
struct ErrorTest {};

constexpr ErrorTest kErrorTests[]{};

TEST(Status, CreateAndClassify) {}

TEST(Status, DefaultConstructor) {}

TEST(Status, OkStatus) {}

TEST(Status, ConstructorWithCodeMessage) {}

TEST(Status, StatusMessageCStringTest) {}

TEST(Status, ConstructOutOfRangeCode) {}

constexpr char kUrl1[] =;
constexpr char kUrl2[] =;
constexpr char kUrl3[] =;
constexpr char kUrl4[] =;

constexpr char kPayload1[] =;
constexpr char kPayload2[] =;
constexpr char kPayload3[] =;

PayloadsVec;

TEST(Status, TestGetSetPayload) {}

TEST(Status, TestErasePayload) {}

TEST(Status, TestComparePayloads) {}

TEST(Status, TestComparePayloadsAfterErase) {}

PayloadsVec AllVisitedPayloads(const absl::Status& s) {}

TEST(Status, TestForEachPayload) {}

TEST(Status, ToString) {}

TEST(Status, ToStringMode) {}

TEST(Status, OstreamOperator) {}

TEST(Status, AbslStringify) {}

TEST(Status, OstreamEqStringify) {}

absl::Status EraseAndReturn(const absl::Status& base) {}

TEST(Status, CopyOnWriteForErasePayload) {}

TEST(Status, CopyConstructor) {}

TEST(Status, CopyAssignment) {}

TEST(Status, CopyAssignmentIsNotRef) {}

TEST(Status, MoveConstructor) {}

TEST(Status, MoveAssignment) {}

TEST(Status, Update) {}

TEST(Status, Equality) {}

TEST(Status, Swap) {}

TEST(StatusErrno, ErrnoToStatusCode) {}

TEST(StatusErrno, ErrnoToStatus) {}

}  // namespace