blob: 0f0863c80657cf2778eb624920dfb571d3d1c2b3 [file] [log] [blame]
Yong Hongf4872de2019-01-30 19:04:18 +08001/* Copyright 2019 The Chromium OS 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
6#include "hardware_verifier/test_utils.h"
7
8#include <cstdlib>
9
10#include <base/logging.h>
11
12namespace hardware_verifier {
13
14base::FilePath GetTestDataPath() {
15 char* src_env = std::getenv("SRC");
16 CHECK_NE(src_env, nullptr)
17 << "Expect to have the envvar |SRC| set when testing.";
18 return base::FilePath(src_env).Append("testdata");
19}
20
21} // namespace hardware_verifier