Fix copyright lines
[folly.git] / folly / experimental / logging / test / ImmediateFileWriterTest.cpp
index cff7525f02023998b934bacbc307a88b4ae40cfc..12bf05250e3c96cb849a1eadf3e6dcbd1ebf2b9d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2004-present 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.
@@ -40,7 +40,7 @@ TEST(ImmediateFileWriter, readBatch) {
 
   // Read the log file and confirm it contains all of the expected messages
   std::string data;
-  auto ret = folly::readFile(tmpFile.path().native().c_str(), data);
+  auto ret = folly::readFile(tmpFile.path().string().c_str(), data);
   ASSERT_TRUE(ret);
 
   std::string expected =
@@ -59,11 +59,11 @@ TEST(ImmediateFileWriter, readBatch) {
 
 TEST(ImmediateFileWriter, immediateRead) {
   TemporaryFile tmpFile{"logging_test"};
-  ImmediateFileWriter writer{tmpFile.path().native()};
+  ImmediateFileWriter writer{tmpFile.path().string()};
 
   // Write several messages, and read each one back immediately
   // after we write it.
-  folly::File readf{tmpFile.path().native()};
+  folly::File readf{tmpFile.path().string()};
   for (int n = 0; n < 10; ++n) {
     writer.writeMessage(folly::to<std::string>("message ", n, "\n"));
 
@@ -86,7 +86,7 @@ void handleLoggingError(
     std::string&& msg) {
   internalWarnings->emplace_back(std::move(msg));
 }
-}
+} // namespace
 
 TEST(ImmediateFileWriter, ioError) {
   std::array<int, 2> fds;