Flutter Engine
The Flutter Engine
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Properties
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
y
Enumerator
b
c
d
e
f
g
h
k
l
m
n
p
r
s
t
u
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
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