Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
context_options_unittests.cc
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 "context_options.h"
6
7#include "gtest/gtest.h"
8
9namespace flutter {
10namespace testing {
11
12TEST(ContextOptionsTest, OpenGLDisablesStencilBuffers) {
13 auto options = MakeDefaultContextOptions(flutter::ContextType::kRender,
15 EXPECT_TRUE(options.fAvoidStencilBuffers);
16}
17
18} // namespace testing
19} // namespace flutter
const char * options
#define TEST(S, s, D, expected)
GrContextOptions MakeDefaultContextOptions(ContextType type, std::optional< GrBackendApi > api)
Initializes GrContextOptions with values suitable for Flutter. The options can be further tweaked bef...
#define EXPECT_TRUE(handle)
Definition unit_test.h:685