folly copyright 2015 -> copyright 2016
[folly.git] / folly / json.h
index ead3afd01bec45a6618fdb6da217bb06d1269a4d..2854b76a5f8f5024276bfb22b46e77e74806a2d2 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.
@@ -41,6 +41,8 @@
 #ifndef FOLLY_JSON_H_
 #define FOLLY_JSON_H_
 
+#include <iosfwd>
+
 #include <folly/dynamic.h>
 #include <folly/FBString.h>
 #include <folly/Range.h>
@@ -158,6 +160,11 @@ fbstring toJson(dynamic const&);
  */
 fbstring toPrettyJson(dynamic const&);
 
+/*
+ * Printer for GTest.
+ * Uppercase name to fill GTest's API, which calls this method through ADL.
+ */
+void PrintTo(const dynamic&, std::ostream*);
 //////////////////////////////////////////////////////////////////////
 
 }