Flutter Engine
The Flutter Engine
shell
platform
windows
testing
egl
mock_context.h
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_EGL_MOCK_CONTEXT_H_
6
#define FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_EGL_MOCK_CONTEXT_H_
7
8
#include "flutter/fml/macros.h"
9
#include "flutter/shell/platform/windows/egl/context.h"
10
#include "gmock/gmock.h"
11
12
namespace
flutter
{
13
namespace
testing {
14
namespace
egl {
15
16
/// Mock for the |Context| base class.
17
class
MockContext
:
public
flutter::egl::Context
{
18
public
:
19
MockContext
() :
Context
(EGL_NO_DISPLAY, EGL_NO_CONTEXT) {}
20
21
MOCK_METHOD
(
bool
,
MakeCurrent
, (), (
const
,
override
));
22
MOCK_METHOD
(
bool
,
ClearCurrent
, (), (
const
,
override
));
23
24
private
:
25
FML_DISALLOW_COPY_AND_ASSIGN(
MockContext
);
26
};
27
28
}
// namespace egl
29
}
// namespace testing
30
}
// namespace flutter
31
32
#endif
// FLUTTER_SHELL_PLATFORM_WINDOWS_TESTING_EGL_MOCK_CONTEXT_H_
flutter::egl::Context
Definition:
context.h:20
flutter::egl::Context::ClearCurrent
virtual bool ClearCurrent() const
Definition:
context.cc:40
flutter::egl::Context::MakeCurrent
virtual bool MakeCurrent() const
Definition:
context.cc:29
flutter::testing::egl::MockContext
Mock for the |Context| base class.
Definition:
mock_context.h:17
flutter::testing::egl::MockContext::MOCK_METHOD
MOCK_METHOD(bool, ClearCurrent,(),(const, override))
flutter::testing::egl::MockContext::MockContext
MockContext()
Definition:
mock_context.h:19
flutter::testing::egl::MockContext::MOCK_METHOD
MOCK_METHOD(bool, MakeCurrent,(),(const, override))
flutter
Definition:
asset_manager.cc:10
Context
Definition:
SerialProcsTest.cpp:126
Generated on Sun Jun 23 2024 21:55:18 for Flutter Engine by
1.9.4