Hardik Goyal | b09d6b0 | 2019-08-13 16:15:50 -0700 | [diff] [blame] | 1 | // 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 | #include "debugd/src/helper_utils.h" |
| 6 | |
| 7 | #include <gtest/gtest.h> |
| 8 | |
| 9 | namespace debugd { |
| 10 | |
| 11 | TEST(SandboxedProcessTest, GetHelperPath) { |
| 12 | std::string full_path; |
| 13 | |
| 14 | EXPECT_TRUE(GetHelperPath("", &full_path)); |
| 15 | EXPECT_EQ("/usr/libexec/debugd/helpers/", full_path); |
| 16 | |
| 17 | EXPECT_TRUE(GetHelperPath("test/me", &full_path)); |
| 18 | EXPECT_EQ("/usr/libexec/debugd/helpers/test/me", full_path); |
| 19 | } |
| 20 | |
| 21 | } // namespace debugd |