Flutter Engine
Loading...
Searching...
No Matches
embedder_test_metal.mm
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
#include "
flutter/shell/platform/embedder/tests/embedder_test.h
"
6
7
#include "
flutter/shell/platform/embedder/tests/embedder_test_context_metal.h
"
8
9
namespace
flutter::testing
{
10
11
EmbedderTestContext&
EmbedderTest::GetMetalContext
() {
12
if
(!
metal_context_
) {
13
metal_context_
= std::make_unique<EmbedderTestContextMetal>(
GetFixturesDirectory
());
14
}
15
return
*
metal_context_
.get();
16
}
17
18
}
// namespace flutter::testing
flutter::testing::EmbedderTest::GetFixturesDirectory
std::string GetFixturesDirectory() const
Definition
embedder_test.cc:16
flutter::testing::EmbedderTest::GetMetalContext
EmbedderTestContext & GetMetalContext()
Definition
embedder_test.cc:40
flutter::testing::EmbedderTest::metal_context_
std::unique_ptr< EmbedderTestContext > metal_context_
Definition
embedder_test.h:69
embedder_test.h
embedder_test_context_metal.h
flutter::testing
Definition
native_assets_unittests.cc:10
shell
platform
embedder
tests
embedder_test_metal.mm
Generated on Thu Nov 6 2025 16:11:27 for Flutter Engine by
1.9.8