Unit tests: Prefer constructor to SetUp() in fixtures.

This commit is contained in:
Peter Johnson
2015-07-19 16:30:04 -07:00
parent 1cc148848b
commit cf18355fe2
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ namespace nt {
class WireDecoderTest : public ::testing::Test {
protected:
virtual void SetUp() {
WireDecoderTest() {
v_boolean = Value::MakeBoolean(true);
v_double = Value::MakeDouble(1.0);
v_string = Value::MakeString(llvm::StringRef("hello"));