chromium/gpu/config/gpu_test_expectations_parser.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "gpu/config/gpu_test_expectations_parser.h"

#include <stddef.h>
#include <stdint.h>

#include "base/check_op.h"
#include "base/files/file_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"

namespace gpu {

namespace {

enum LineParserStage {};

enum Token {};

struct TokenInfo {};

const TokenInfo kTokenData[] =;

enum ErrorType {};

const char* kErrorMessage[] =;

Token ParseToken(const std::string& word) {}

// reference name can have the last character as *.
bool NamesMatching(const std::string& ref, const std::string& test_name) {}

}  // namespace anonymous

GPUTestExpectationsParser::GPUTestExpectationsParser() {}

GPUTestExpectationsParser::~GPUTestExpectationsParser() = default;

bool GPUTestExpectationsParser::LoadTestExpectations(const std::string& data) {}

bool GPUTestExpectationsParser::LoadTestExpectations(
    const base::FilePath& path) {}

int32_t GPUTestExpectationsParser::GetTestExpectation(
    const std::string& test_name,
    const GPUTestBotConfig& bot_config) const {}

const std::vector<std::string>&
GPUTestExpectationsParser::GetErrorMessages() const {}

bool GPUTestExpectationsParser::ParseConfig(
    const std::string& config_data, GPUTestConfig* config) {}

bool GPUTestExpectationsParser::ParseLine(
    const std::string& line_data, size_t line_number) {}

bool GPUTestExpectationsParser::UpdateTestConfig(GPUTestConfig* config,
                                                 int32_t token,
                                                 size_t line_number) {}

bool GPUTestExpectationsParser::UpdateTestConfig(
    GPUTestConfig* config,
    const std::string& gpu_device_id,
    size_t line_number) {}

bool GPUTestExpectationsParser::DetectConflictsBetweenEntries() {}

void GPUTestExpectationsParser::PushErrorMessage(
    const std::string& message, size_t line_number) {}

void GPUTestExpectationsParser::PushErrorMessage(
    const std::string& message,
    size_t entry1_line_number,
    size_t entry2_line_number) {}

GPUTestExpectationsParser:: GPUTestExpectationEntry::GPUTestExpectationEntry()
    :{}

}  // namespace gpu