/*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <mutex>
#include <glog/logging.h>
-#include <gtest/gtest.h>
#include <boost/thread/locks.hpp>
#include <folly/String.h>
#include <folly/experimental/TestUtil.h>
#include <folly/experimental/io/FsUtil.h>
#include <folly/portability/GFlags.h>
+#include <folly/portability/GTest.h>
using namespace folly;
using namespace folly::test;
enum LockMode { EXCLUSIVE, SHARED };
auto testLock = [&](LockMode mode, bool expectedSuccess) {
- auto ret = Subprocess({helper.native(),
+ auto ret = Subprocess({helper.string(),
mode == SHARED ? "-s" : "-x",
- tempFile.path().native()}).wait();
+ tempFile.path().string()}).wait();
EXPECT_TRUE(ret.exited());
if (ret.exited()) {
EXPECT_EQ(expectedSuccess ? 0 : 42, ret.exitStatus());