Flutter Engine
The Flutter Engine
third_party
dart-lang
sdk
runtime
bin
test_utils.cc
Go to the documentation of this file.
1
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2
// for details. All rights reserved. Use of this source code is governed by a
3
// BSD-style license that can be found in the LICENSE file.
4
5
#include "
bin/test_utils.h
"
6
#include "
bin/file.h
"
7
8
namespace
dart
{
9
namespace
bin {
10
namespace
test
{
11
12
const
char
*
GetFileName
(
const
char
*
name
) {
13
if
(
bin::File::Exists
(
nullptr
,
name
)) {
14
return
name
;
15
}
else
{
16
const
int
kRuntimeLength = strlen(
"runtime/"
);
17
return
name
+ kRuntimeLength;
18
}
19
}
20
21
}
// namespace test
22
}
// namespace bin
23
}
// namespace dart
dart::bin::File::Exists
static bool Exists(Namespace *namespc, const char *path)
dart::bin::test::GetFileName
const char * GetFileName(const char *name)
Definition:
test_utils.cc:12
dart
Definition:
dart_vm.cc:33
dart::name
const char *const name
Definition:
method_recognizer.cc:309
test
test_utils.h
file.h
Generated on Sun Jun 23 2024 21:55:24 for Flutter Engine by
1.9.4