From fa19a54ab71bc3d0ee52209eb10aa7bb67b38da0 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Fri, 3 Jul 2015 22:16:51 -0700 Subject: [PATCH] Separate ValueTest and StringValueTest into headers. Change-Id: If326e6943a11f271ef939dc815a45ba0b4ee271c --- test/unit/StringValueTest.cpp | 9 +-------- test/unit/StringValueTest.h | 12 ++++++++++++ test/unit/ValueTest.cpp | 9 +-------- test/unit/ValueTest.h | 12 ++++++++++++ 4 files changed, 26 insertions(+), 16 deletions(-) create mode 100644 test/unit/StringValueTest.h create mode 100644 test/unit/ValueTest.h diff --git a/test/unit/StringValueTest.cpp b/test/unit/StringValueTest.cpp index b15c54b047..7a4b923248 100644 --- a/test/unit/StringValueTest.cpp +++ b/test/unit/StringValueTest.cpp @@ -1,14 +1,7 @@ -#include "Value.h" - -#include "gtest/gtest.h" +#include "StringValueTest.h" namespace ntimpl { -class StringValueTest : public ::testing::Test { - public: - NT_String& ToNT(StringValue& v) { return v; } -}; - TEST_F(StringValueTest, ConstructEmpty) { StringValue v; ASSERT_EQ(nullptr, ToNT(v).str); diff --git a/test/unit/StringValueTest.h b/test/unit/StringValueTest.h new file mode 100644 index 0000000000..2943353315 --- /dev/null +++ b/test/unit/StringValueTest.h @@ -0,0 +1,12 @@ +#include "Value.h" + +#include "gtest/gtest.h" + +namespace ntimpl { + +class StringValueTest : public ::testing::Test { + public: + NT_String& ToNT(StringValue& v) { return v; } +}; + +} // namespace ntimpl diff --git a/test/unit/ValueTest.cpp b/test/unit/ValueTest.cpp index 4f14ea9c25..7a7f3b912b 100644 --- a/test/unit/ValueTest.cpp +++ b/test/unit/ValueTest.cpp @@ -1,14 +1,7 @@ -#include "Value.h" - -#include "gtest/gtest.h" +#include "ValueTest.h" namespace ntimpl { -class ValueTest : public ::testing::Test { - public: - NT_Value& ToNT(Value& v) { return v; } -}; - typedef ValueTest ValueDeathTest; TEST_F(ValueTest, ConstructEmpty) { diff --git a/test/unit/ValueTest.h b/test/unit/ValueTest.h new file mode 100644 index 0000000000..abe49a28a4 --- /dev/null +++ b/test/unit/ValueTest.h @@ -0,0 +1,12 @@ +#include "Value.h" + +#include "gtest/gtest.h" + +namespace ntimpl { + +class ValueTest : public ::testing::Test { + public: + NT_Value& ToNT(Value& v) { return v; } +}; + +} // namespace ntimpl