xref: /llvm-project/lldb/unittests/Utility/ProcessInfoTest.cpp (revision 808142876c10b52e7ee57cdc6dcf0acc5c97c1b7)
1*80814287SRaphael Isemann //===-- ProcessInfoTest.cpp -----------------------------------------------===//
2805e7106SZachary Turner //
3805e7106SZachary Turner // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4805e7106SZachary Turner // See https://llvm.org/LICENSE.txt for license information.
5805e7106SZachary Turner // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6805e7106SZachary Turner //
7805e7106SZachary Turner //===----------------------------------------------------------------------===//
8805e7106SZachary Turner 
9805e7106SZachary Turner #include "lldb/Utility/ProcessInfo.h"
10805e7106SZachary Turner #include "gtest/gtest.h"
11805e7106SZachary Turner 
12805e7106SZachary Turner using namespace lldb_private;
13805e7106SZachary Turner 
TEST(ProcessInfoTest,Constructor)14805e7106SZachary Turner TEST(ProcessInfoTest, Constructor) {
15805e7106SZachary Turner   ProcessInfo Info("foo", ArchSpec("x86_64-pc-linux"), 47);
16805e7106SZachary Turner   EXPECT_STREQ("foo", Info.GetName());
17805e7106SZachary Turner   EXPECT_EQ(ArchSpec("x86_64-pc-linux"), Info.GetArchitecture());
18805e7106SZachary Turner   EXPECT_EQ(47u, Info.GetProcessID());
19805e7106SZachary Turner }
20