chromium/gpu/config/gpu_info_collector_unittest.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.

#include "gpu/config/gpu_info_collector.h"

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

#include <memory>
#include <string>
#include <vector>

#include "base/memory/raw_ptr.h"
#include "base/strings/string_split.h"
#include "build/build_config.h"
#include "gpu/config/gpu_info.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gl/gl_context_stub.h"
#include "ui/gl/gl_display.h"
#include "ui/gl/gl_implementation.h"
#include "ui/gl/gl_mock.h"
#include "ui/gl/gl_surface_stub.h"
#include "ui/gl/gl_utils.h"
#include "ui/gl/init/gl_factory.h"
#include "ui/gl/test/gl_surface_test_support.h"

MockGLInterface;
Return;
SetArgPointee;
_;

namespace {

// Allows testing of all configurations on all operating systems.
enum MockedOperatingSystemKind {};

}  // anonymous namespace

namespace gpu {

static const MockedOperatingSystemKind kMockedOperatingSystemKinds[] =;

class GPUInfoCollectorTest
    : public testing::Test,
      public ::testing::WithParamInterface<MockedOperatingSystemKind> {};

INSTANTIATE_TEST_SUITE_P();

// TODO(rlp): Test the vendor and device id collection if deemed necessary as
//            it involves several complicated mocks for each platform.

// TODO(kbr): This test still has platform-dependent behavior because
// CollectDriverInfoGL behaves differently per platform. This should
// be fixed.
TEST_P(GPUInfoCollectorTest, CollectGraphicsInfoGL) {}

TEST(MultiGPUsTest, IdentifyActiveGPU0) {}

TEST(MultiGPUsTest, IdentifyActiveGPU1) {}

TEST(MultiGPUsTest, IdentifyActiveGPU2) {}

TEST(MultiGPUsTest, IdentifyActiveGPU3) {}

TEST(MultiGPUsTest, IdentifyActiveGPU4) {}

TEST(MultiGPUsTest, IdentifyActiveGPUAvoidFalseMatch) {}

}  // namespace gpu