diff options
Diffstat (limited to 'unittests/Utility/EventTest.cpp')
-rw-r--r-- | unittests/Utility/EventTest.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/unittests/Utility/EventTest.cpp b/unittests/Utility/EventTest.cpp deleted file mode 100644 index 57e934ba8e42..000000000000 --- a/unittests/Utility/EventTest.cpp +++ /dev/null @@ -1,25 +0,0 @@ -//===-- EventTest.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/Utility/Event.h" -#include "lldb/Utility/StreamString.h" -#include "gtest/gtest.h" - -using namespace lldb_private; - -static std::string to_string(const EventDataBytes &E) { - StreamString S; - E.Dump(&S); - return S.GetString(); -} - -TEST(EventTest, DumpEventDataBytes) { - EXPECT_EQ(R"("foo")", to_string(EventDataBytes("foo"))); - EXPECT_EQ("01 02 03", to_string(EventDataBytes("\x01\x02\x03"))); -} |