Flutter Engine
gl_context_switch_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 #define FML_USED_ON_EMBEDDER
5 
6 #include "flutter/flow/gl_context_switch.h"
7 
8 #include <functional>
9 #include <future>
10 #include <memory>
11 
12 #include "flutter/flow/testing/gl_context_switch_test.h"
13 #include "gtest/gtest.h"
14 
15 namespace flutter {
16 namespace testing {
17 
18 TEST(GLContextSwitchTest, SwitchKeepsContextCurrentWhileInScope) {
19  {
20  auto test_gl_context = std::make_unique<TestSwitchableGLContext>(0);
21  auto context_switch = GLContextSwitch(std::move(test_gl_context));
23  }
25 }
26 
27 } // namespace testing
28 } // namespace flutter
TEST(EmbeddedViewParams, GetBoundingRectAfterMutationsWithNoMutations)