make EqualsNoTime actually work for not-structs...

Change-Id: Ieb0f4d9904fb4d01a6603bf2ad33e16b66ad2a42
diff --git a/aos/common/queue_test.cc b/aos/common/queue_test.cc
index 124fa0e..6d5dda6 100644
--- a/aos/common/queue_test.cc
+++ b/aos/common/queue_test.cc
@@ -273,6 +273,21 @@
   EXPECT_LE(msg.sent_time - Time::Now(), Time::InMS(20));
 }
 
+// Tests that EqualsNoTime works.
+TEST_F(MessageTest, EqualsNoTime) {
+  msg.test_bool = true;
+  msg.test_int = 971;
+  TestingMessage other;
+  other.test_int = 971;
+  EXPECT_FALSE(other.EqualsNoTime(msg));
+  EXPECT_FALSE(msg.EqualsNoTime(other));
+  other.test_bool = true;
+  EXPECT_TRUE(other.EqualsNoTime(msg));
+  EXPECT_TRUE(msg.EqualsNoTime(other));
+  msg.SetTimeToNow();
+  EXPECT_TRUE(msg.EqualsNoTime(other));
+}
+
 }  // namespace testing
 }  // namespace common
 }  // namespace aos