folly copyright 2015 -> copyright 2016
[folly.git] / folly / futures / test / ContextTest.cpp
index dd29b155b96e83998c16bae28df4dffabe9ad007..357739f9878b2f47da1576cac7cf42d737658744 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2015 Facebook, Inc.
+ * Copyright 2016 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@ using namespace folly;
 class TestData : public RequestData {
  public:
   explicit TestData(int data) : data_(data) {}
-  virtual ~TestData() {}
+  ~TestData() override {}
   int data_;
 };
 
@@ -40,7 +40,7 @@ TEST(Context, basic) {
     std::unique_ptr<TestData>(new TestData(10)));
 
   // Start a future
-  Promise<void> p;
+  Promise<Unit> p;
   auto future = p.getFuture().then([&]{
     // Check that the context followed the future
     EXPECT_TRUE(RequestContext::get() != nullptr);