diff options
Diffstat (limited to 'lldb/unittests/Host/FileActionTest.cpp')
-rw-r--r-- | lldb/unittests/Host/FileActionTest.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lldb/unittests/Host/FileActionTest.cpp b/lldb/unittests/Host/FileActionTest.cpp new file mode 100644 index 00000000000..abe4408427c --- /dev/null +++ b/lldb/unittests/Host/FileActionTest.cpp @@ -0,0 +1,20 @@ +//===-- FileActionTest.cpp --------------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#include "lldb/Host/FileAction.h" +#include "gtest/gtest.h" + +using namespace lldb_private; + +TEST(FileActionTest, Open) { + FileAction Action; + Action.Open(47, FileSpec("/tmp"), /*read*/ true, /*write*/ false); + EXPECT_EQ(Action.GetAction(), FileAction::eFileActionOpen); + EXPECT_EQ(Action.GetFileSpec(), FileSpec("/tmp")); +} |