#include <stdint.h>
#include "base/format_macros.h"
#include "base/strings/stringprintf.h"
#include "gpu/config/gpu_test_expectations_parser.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace gpu {
struct TestOSEntry { … };
static const TestOSEntry kOsFamilyWin = …;
static const TestOSEntry kOsFamilyMac = …;
static const struct TestOsWithFamily { … } kOSVersionsWithFamily[] = …;
TestOSEntry GetUnrelatedOS(const TestOSEntry& os) { … }
std::ostream& operator << (std::ostream& out, const TestOsWithFamily& os) { … }
class GPUTestExpectationsParserTest : public testing::Test { … };
class GPUTestExpectationsParserParamTest
: public GPUTestExpectationsParserTest,
public testing::WithParamInterface<TestOsWithFamily> { … };
TEST_F(GPUTestExpectationsParserTest, CommentOnly) { … }
TEST_P(GPUTestExpectationsParserParamTest, ValidFullEntry) { … }
TEST_P(GPUTestExpectationsParserParamTest, ValidPartialEntry) { … }
TEST_P(GPUTestExpectationsParserParamTest, ValidUnrelatedOsEntry) { … }
TEST_F(GPUTestExpectationsParserTest, ValidUnrelatedTestEntry) { … }
TEST_F(GPUTestExpectationsParserTest, AllModifiers) { … }
TEST_P(GPUTestExpectationsParserParamTest, DuplicateModifiers) { … }
TEST_F(GPUTestExpectationsParserTest, AllModifiersLowerCase) { … }
TEST_F(GPUTestExpectationsParserTest, MissingColon) { … }
TEST_F(GPUTestExpectationsParserTest, MissingEqual) { … }
TEST_F(GPUTestExpectationsParserTest, IllegalModifier) { … }
TEST_P(GPUTestExpectationsParserParamTest, OsConflicts) { … }
TEST_F(GPUTestExpectationsParserTest, InvalidModifierCombination) { … }
TEST_F(GPUTestExpectationsParserTest, BadGpuDeviceID) { … }
TEST_F(GPUTestExpectationsParserTest, MoreThanOneGpuDeviceID) { … }
TEST_P(GPUTestExpectationsParserParamTest, MultipleEntriesConflicts) { … }
TEST_F(GPUTestExpectationsParserTest, MultipleTests) { … }
TEST_F(GPUTestExpectationsParserTest, ValidMultipleEntries) { … }
TEST_F(GPUTestExpectationsParserTest, StarMatching) { … }
TEST_F(GPUTestExpectationsParserTest, ValidAPI) { … }
TEST_F(GPUTestExpectationsParserTest, MultipleAPIsConflict) { … }
TEST_F(GPUTestExpectationsParserTest, PassthroughCommandDecoder) { … }
TEST_F(GPUTestExpectationsParserTest, ValidatingCommandDecoder) { … }
TEST_F(GPUTestExpectationsParserTest, MultipleCommandDecodersConflict) { … }
INSTANTIATE_TEST_SUITE_P(…);
}