Refactor stats to use the same type for indexes
[folly.git] / folly / test / SynchronizedTestLib.h
index c3602cb7b49d8d20e8d6f83c78f8aa34adf316e0..fe37f2040e1e061b87b0b9334ec54151006bcb10 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2014 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.
@@ -14,8 +14,7 @@
  * limitations under the License.
  */
 
-#ifndef FOLLY_TEST_SYNCHRONIZEDTESTLIB_H
-#define FOLLY_TEST_SYNCHRONIZEDTESTLIB_H
+#pragma once
 
 // We have mutex types outside of folly that we want to test with Synchronized.
 // Make it easy for mutex implementators to test their classes with
 //
 // ... similar for testConcurrency, testDualLocking, etc.
 
+namespace folly {
+namespace sync_tests {
+template <class Mutex>
+void testBasic();
+template <class Mutex>
+void testDeprecated();
+template <class Mutex>
+void testConcurrency();
+template <class Mutex>
+void testAcquireLocked();
+template <class Mutex>
+void testAcquireLockedWithConst();
+template <class Mutex>
+void testDualLockingWithConst();
+template <class Mutex>
+void testDualLocking();
+template <class Mutex>
+void testDualLockingWithConst();
+template <class Mutex>
+void testTimed();
+template <class Mutex>
+void testTimedShared();
+template <class Mutex>
+void testTimedSynchronizedDeprecated();
+template <class Mutex>
+void testTimedSynchronizedWithConst();
+template <class Mutex>
+void testConstCopy();
+template <class Mutex>
+void testInPlaceConstruction();
+}
+}
 
-template <class Mutex> void testBasic();
-
-template <class Mutex> void testConcurrency();
-
-template <class Mutex> void testDualLocking();
-
-template <class Mutex> void testDualLockingWithConst();
-
-template <class Mutex> void testTimedSynchronized();
-
-template <class Mutex> void testTimedSynchronizedWithConst();
-
-template <class Mutex> void testConstCopy();
-
-#include "folly/test/SynchronizedTestLib-inl.h"
-
-#endif /* FOLLY_TEST_SYNCHRONIZEDTESTLIB_H */
+#include <folly/test/SynchronizedTestLib-inl.h>