blob: c4eb2b7ef77637b91e8f3de7f658ec0cc1b71cc4 [file] [log] [blame]
Hardik Goyalb09d6b02019-08-13 16:15:50 -07001// 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
9namespace debugd {
10
11TEST(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