Michael Martis | c22823d | 2018-09-14 12:54:04 +1000 | [diff] [blame] | 1 | // 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 Fan | 713061e | 2021-03-08 15:45:12 +0900 | [diff] [blame] | 7 | #include <base/check_op.h> |
| 8 | |
Michael Martis | c22823d | 2018-09-14 12:54:04 +1000 | [diff] [blame] | 9 | namespace ml { |
| 10 | |
| 11 | std::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 | |
| 17 | } // namespace ml |