A bunch of small fixes to build in MSVC2013.
authorAndrew Woloszyn <awoloszyn@google.com>
Fri, 18 Sep 2015 15:50:54 +0000 (11:50 -0400)
committerDavid Neto <dneto@google.com>
Mon, 26 Oct 2015 16:55:33 +0000 (12:55 -0400)
commitf2d0775f1baa1e00df5ea63c8b651ae96488f67e
tree8bbe2f2605ee5a852cb39492e8bc23ebe25843f7
parentee1b3bb3bb6407ac2be848506061017455f9ab80
A bunch of small fixes to build in MSVC2013.

Fixed an issue where some of the tests were testing
the wrong word with the wrong operation. (| != ||).

Coalesced the many versions of EnumCase into one.
Added a get_value() to EnumCase to convert to a uint32_t.

Replaces ASSERT_TRUE(pointer), with ASSERT_NE(nullptr, pointer),
so that we do not do implicit pointer->bool conversion.

Removed const from some test structs since gtest needs to be
able to swap them.
15 files changed:
test/AssemblyFormat.cpp [changed mode: 0644->0755]
test/OperandPattern.cpp [changed mode: 0644->0755]
test/TextLiteral.cpp [changed mode: 0644->0755]
test/TextStartsNewInst.cpp [changed mode: 0644->0755]
test/TextToBinary.Annotation.cpp [changed mode: 0644->0755]
test/TextToBinary.Constant.cpp [changed mode: 0644->0755]
test/TextToBinary.ControlFlow.cpp [changed mode: 0644->0755]
test/TextToBinary.Debug.cpp [changed mode: 0644->0755]
test/TextToBinary.Function.cpp [changed mode: 0644->0755]
test/TextToBinary.Group.cpp [changed mode: 0644->0755]
test/TextToBinary.Memory.cpp [changed mode: 0644->0755]
test/TextToBinary.ModeSetting.cpp [changed mode: 0644->0755]
test/TextToBinary.TypeDeclaration.cpp [changed mode: 0644->0755]
test/TextToBinary.cpp [changed mode: 0644->0755]
test/UnitSPIRV.h [changed mode: 0644->0755]