blob: 197e6f9e5b8ce257fdd21a6a65799e47fdcbf9d6 [file] [log] [blame]
Michael Martisc22823d2018-09-14 12:54:04 +10001// Copyright 2018 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#include "ml/test_utils.h"
6
Qijiang Fan713061e2021-03-08 15:45:12 +09007#include <base/check_op.h>
8
Michael Martisc22823d2018-09-14 12:54:04 +10009namespace ml {
10
11std::string GetTestModelDir() {
12 const char* const temp_dir = getenv("T");
13 CHECK_NE(temp_dir, nullptr);
14 return std::string(temp_dir) + "/ml_models/";
15}
16
Honglin Yuf3c47b32021-05-06 18:38:37 +100017std::string GetMlServicePath() {
18 const char* const temp_dir = getenv("OUT");
19 CHECK_NE(temp_dir, nullptr);
20 return std::string(temp_dir) + "/ml_service";
21}
22
Michael Martisc22823d2018-09-14 12:54:04 +100023} // namespace ml