chromium/media/base/status_unittest.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <sstream>
#include <string>

#include "base/json/json_writer.h"
#include "base/ranges/algorithm.h"
#include "media/base/media_serializers.h"
#include "media/base/status.h"
#include "media/base/test_helpers.h"
#include "testing/gtest/include/gtest/gtest.h"

HasSubstr;

namespace media {

class UselessThingToBeSerialized {};

namespace internal {

template <>
struct MediaSerializer<UselessThingToBeSerialized> {};

}  // namespace internal

struct NoOkStatusTypeTraits {};

struct CustomDefaultValue {};

struct ZeroValueOkTypeTraits {};

struct NonZeroOkTypeTraits {};

struct MapValueCodeTraits {};

struct TraitsWithCustomUKMSerializer {};

struct TraitsWithDataPacking {};

class StatusTest : public testing::Test {};

TEST_F(StatusTest, DifferentModesOfConstruction) {}

TEST_F(StatusTest, DerefOpOnOrType) {}

TEST_F(StatusTest, StaticOKMethodGivesCorrectSerialization) {}

TEST_F(StatusTest, SingleLayerError) {}

TEST_F(StatusTest, MultipleErrorLayer) {}

TEST_F(StatusTest, CanHaveData) {}

TEST_F(StatusTest, CanUseCustomSerializer) {}

TEST_F(StatusTest, CausedByHasVector) {}

TEST_F(StatusTest, CausedByCanAssignCopy) {}

TEST_F(StatusTest, CanCopyEasily) {}

TEST_F(StatusTest, StatusOrTypicalUsage) {}

TEST_F(StatusTest, StatusOrWithMoveOnlyType) {}

TEST_F(StatusTest, StatusOrWithCopyableType) {}

TEST_F(StatusTest, StatusOrMoveConstructionAndAssignment) {}

TEST_F(StatusTest, StatusOrCopyWorks) {}

TEST_F(StatusTest, StatusOrCodeIsOkWithValue) {}

TEST_F(StatusTest, TypedStatusWithNoDefaultAndNoOk) {}

TEST_F(StatusTest, TypedStatusWithNoDefaultHasOk) {}

TEST_F(StatusTest, Okayness) {}

TEST_F(StatusTest, MustHaveOkOrHelperMethod) {}

TEST_F(StatusTest, OkStatusInitializesToOk) {}

TEST_F(StatusTest, StatusOrEqOp) {}

TEST_F(StatusTest, OrTypeMapping) {}

TEST_F(StatusTest, OrTypeMappingToOtherOrType) {}

TEST_F(StatusTest, UKMSerializerTest) {}

}  // namespace media