Use std::chrono::high_resolution_clock for folly::Benchmark
[folly.git] / folly / test / MacAddressTest.cpp
index d40f795ac53790c8afd5fb478e0aaf351c59d06a..2f701738ec86aa76c8a831370d791b5214ac7348 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2014 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
+#include <folly/Conv.h>
 #include <folly/IPAddressV6.h>
 #include <folly/MacAddress.h>
+#include <folly/portability/GTest.h>
 
 using folly::MacAddress;
 using folly::IPAddressV6;
@@ -149,7 +149,7 @@ void testCmp(const char* str1, const char* str2) {
   EXPECT_TRUE(m2 > m1);
   EXPECT_TRUE(m2 >= m1);
   EXPECT_TRUE(m1 != m2);
-  EXPECT_TRUE(m1 == m1);
+  EXPECT_TRUE(m1 == (m1));
   EXPECT_FALSE(m1 == m2);
 
   // Also test the copy constructor and assignment operator