[NFC][Coroutines] Use structured binding with llvm::enumerate in CoroSplit (#116879)
[llvm-project.git] / lldb / unittests / Utility / ProcessInfoTest.cpp
blobb2fdbde70dac5147710c65f5bd246a65ba382f58
1 //===-- ProcessInfoTest.cpp -----------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "lldb/Utility/ProcessInfo.h"
10 #include "gtest/gtest.h"
12 using namespace lldb_private;
14 TEST(ProcessInfoTest, Constructor) {
15 ProcessInfo Info("foo", ArchSpec("x86_64-pc-linux"), 47);
16 EXPECT_STREQ("foo", Info.GetName());
17 EXPECT_EQ(ArchSpec("x86_64-pc-linux"), Info.GetArchitecture());
18 EXPECT_EQ(47u, Info.GetProcessID());