Flutter Engine
The Flutter Engine
shell
platform
fuchsia
dart_runner
tests
suite_impl_unittests.cc
Go to the documentation of this file.
1
// Copyright 2022 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 "
dart_runner/dart_test_component_controller.h
"
6
7
#include "gtest/gtest.h"
8
9
namespace
dart_runner::testing
{
10
namespace
{
11
12
std::string
GetCurrentTestName
() {
13
return ::testing::UnitTest::GetInstance()->current_test_info()->name();
14
}
15
16
}
// namespace
17
18
// TODO(naudzghebre): Add unit tests for the dart_test_runner.
19
TEST
(SuiteImplTest, EQUALITY) {
20
EXPECT_EQ(1, 1) <<
GetCurrentTestName
();
21
}
22
23
}
// namespace dart_runner::testing
dart_test_component_controller.h
dart_runner::testing
Definition:
suite_impl_unittests.cc:9
dart_runner::testing::TEST
TEST(SuiteImplTest, EQUALITY)
Definition:
suite_impl_unittests.cc:19
flutter::testing::GetCurrentTestName
std::string GetCurrentTestName()
Gets the name of the currently running test. This is useful in generating logs or assets based on tes...
Definition:
testing.cc:15
Generated on Sun Jun 23 2024 21:55:15 for Flutter Engine by
1.9.4