chromium/gpu/command_buffer/service/raster_decoder_unittest_context_lost.cc

// Copyright 2018 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/command_buffer/common/raster_cmd_format.h"
#include "gpu/command_buffer/service/query_manager.h"
#include "gpu/command_buffer/service/raster_decoder_unittest_base.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gl/gl_mock.h"

_;
InSequence;
Pointee;
Return;
SaveArg;
SetArrayArgument;

namespace gpu {
namespace raster {

class RasterDecoderOOMTest : public RasterDecoderManualInitTest {};

// Test that we lose context.
TEST_P(RasterDecoderOOMTest, ContextLostReasonOOM) {}

TEST_P(RasterDecoderOOMTest, ContextLostReasonWhenStatusIsNoError) {}

TEST_P(RasterDecoderOOMTest, ContextLostReasonWhenStatusIsGuilty) {}

TEST_P(RasterDecoderOOMTest, ContextLostReasonWhenStatusIsUnknown) {}

INSTANTIATE_TEST_SUITE_P();

class RasterDecoderLostContextTest : public RasterDecoderManualInitTest {};

TEST_P(RasterDecoderLostContextTest, LostFromMakeCurrent) {}

TEST_P(RasterDecoderLostContextTest, LostFromDriverOOM) {}

TEST_P(RasterDecoderLostContextTest, LostFromMakeCurrentWithRobustness) {}

TEST_P(RasterDecoderLostContextTest, QueryDestroyAfterLostFromMakeCurrent) {}

TEST_P(RasterDecoderLostContextTest, LostFromResetAfterMakeCurrent) {}

TEST_P(RasterDecoderLostContextTest, LoseGuiltyFromGLError) {}

TEST_P(RasterDecoderLostContextTest, LoseInnocentFromGLError) {}

INSTANTIATE_TEST_SUITE_P();

}  // namespace raster
}  // namespace gpu