forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testing.h
31 lines (21 loc) · 778 Bytes
/
testing.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef TESTING_TESTING_H_
#define TESTING_TESTING_H_
#include <string>
#include "flutter/fml/file.h"
#include "flutter/testing/assertions.h"
#include "gtest/gtest.h"
namespace flutter {
namespace testing {
// Returns the directory containing the test fixture for the target if this
// target has fixtures configured. If there are no fixtures, this is a link
// error.
const char* GetFixturesPath();
fml::UniqueFD OpenFixturesDirectory();
fml::UniqueFD OpenFixture(std::string fixture_name);
std::string GetCurrentTestName();
} // namespace testing
} // namespace flutter
#endif // TESTING_TESTING_H_