Sort #include lines
[folly.git] / folly / futures / test / PollTest.cpp
index 166dea6799677f5160580bc23957d26ef7b68c18..ca293c76fa47884dfb6c65d286020be19491e880 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2015 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.
@@ -14,9 +14,8 @@
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <folly/futures/Future.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
@@ -34,7 +33,7 @@ TEST(Poll, notReady) {
 }
 
 TEST(Poll, exception) {
-  Promise<void> p;
+  Promise<Unit> p;
   auto f = p.getFuture();
   p.setWith([] { throw std::runtime_error("Runtime"); });
   EXPECT_TRUE(f.poll().value().hasException());