2018-11-07 12:24:35 -08:00
|
|
|
// Copyright 2013 The Flutter Authors. All rights reserved.
|
2017-10-25 14:54:20 -07:00
|
|
|
// 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_
|
|
|
|
|
|
2019-04-03 13:38:12 -07:00
|
|
|
#include <string>
|
|
|
|
|
|
2019-07-09 14:59:34 -07:00
|
|
|
#include "flutter/fml/file.h"
|
2019-08-13 14:53:19 -07:00
|
|
|
#include "flutter/testing/assertions.h"
|
2017-10-25 14:54:20 -07:00
|
|
|
#include "gtest/gtest.h"
|
|
|
|
|
|
2019-04-20 20:42:46 -07:00
|
|
|
namespace flutter {
|
2017-10-25 14:54:20 -07:00
|
|
|
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();
|
|
|
|
|
|
2019-08-13 14:53:19 -07:00
|
|
|
fml::UniqueFD OpenFixturesDirectory();
|
|
|
|
|
|
2019-07-09 14:59:34 -07:00
|
|
|
fml::UniqueFD OpenFixture(std::string fixture_name);
|
|
|
|
|
|
2019-04-03 13:38:12 -07:00
|
|
|
std::string GetCurrentTestName();
|
|
|
|
|
|
2017-10-25 14:54:20 -07:00
|
|
|
} // namespace testing
|
2019-04-20 20:42:46 -07:00
|
|
|
} // namespace flutter
|
2017-10-25 14:54:20 -07:00
|
|
|
|
|
|
|
|
#endif // TESTING_TESTING_H_
|