Flutter Impeller
compiler_test.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
#pragma once
6
7
#include "flutter/fml/macros.h"
8
#include "flutter/testing/testing.h"
9
#include "
impeller/base/validation.h
"
10
#include "
impeller/compiler/compiler.h
"
11
#include "
impeller/compiler/source_options.h
"
12
#include "
impeller/compiler/types.h
"
13
14
namespace
impeller
{
15
namespace
compiler {
16
namespace
testing {
17
18
class
CompilerTest
:
public
::testing::TestWithParam<TargetPlatform> {
19
public
:
20
CompilerTest
();
21
22
~CompilerTest
();
23
24
std::unique_ptr<fml::FileMapping>
GetReflectionJson
(
25
const
char
* fixture_name)
const
;
26
27
bool
CanCompileAndReflect
(
28
const
char
* fixture_name,
29
SourceType
source_type =
SourceType::kUnknown
,
30
SourceLanguage
source_language =
SourceLanguage::kGLSL
,
31
const
char
* entry_point_name =
"main"
)
const
;
32
33
private
:
34
fml::UniqueFD intermediates_directory_;
35
36
FML_DISALLOW_COPY_AND_ASSIGN(
CompilerTest
);
37
};
38
39
}
// namespace testing
40
}
// namespace compiler
41
}
// namespace impeller
impeller::compiler::testing::CompilerTest::~CompilerTest
~CompilerTest()
impeller::compiler::SourceType::kUnknown
@ kUnknown
impeller::compiler::testing::CompilerTest::GetReflectionJson
std::unique_ptr< fml::FileMapping > GetReflectionJson(const char *fixture_name) const
Definition:
compiler_test.cc:61
validation.h
impeller::compiler::SourceLanguage::kGLSL
@ kGLSL
source_options.h
compiler.h
impeller::compiler::SourceType
SourceType
Definition:
types.h:19
impeller::compiler::testing::CompilerTest::CanCompileAndReflect
bool CanCompileAndReflect(const char *fixture_name, SourceType source_type=SourceType::kUnknown, SourceLanguage source_language=SourceLanguage::kGLSL, const char *entry_point_name="main") const
Definition:
compiler_test.cc:68
impeller::compiler::SourceLanguage
SourceLanguage
Definition:
types.h:41
impeller::compiler::testing::CompilerTest::CompilerTest
CompilerTest()
Definition:
compiler_test.cc:23
impeller::compiler::testing::CompilerTest
Definition:
compiler_test.h:18
impeller
Definition:
aiks_context.cc:10
types.h
impeller
compiler
compiler_test.h
Generated by
1.8.17