Fix copyright lines
[folly.git] / folly / futures / test / TestExecutor.h
index c09713bef7fadd31332767c1baed6bc68b011c3e..54a8c96cf4e916a21916a68ae958a59f925839a1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2017 Facebook, Inc.
+ * Copyright 2017-present Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -29,13 +29,13 @@ namespace folly {
  */
 class TestExecutor : public Executor {
  public:
-  TestExecutor();
+  explicit TestExecutor(size_t numThreads);
 
   ~TestExecutor() override;
 
   void add(Func f) override;
 
-  uint32_t numThreads() const;
+  size_t numThreads() const;
 
  private:
   void addImpl(Func f);
@@ -47,4 +47,4 @@ class TestExecutor : public Executor {
   std::vector<std::thread> workers_;
 };
 
-} // folly
+} // namespace folly