// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "third_party/googletest/custom/gtest/internal/custom/chrome_custom_temp_dir.h" #include "third_party/googletest/src/googletest/include/gtest/internal/gtest-port.h" #if GTEST_OS_WINDOWS #include <windows.h> #endif // GTEST_OS_WINDOWS namespace testing { namespace { // The temporary directory read from the OS canonical environment variable. // // Returns an empty string if the environment variable is not set. The returned // string may or may not end with the OS-specific path separator. The path is // not guaranteed to point to an existing directory. The directory it points to // is not guaranteed to be writable by the application. std::string ChromeGetEnvTempDir() { … } } // namespace // returns temp directory for tests. std::string ChromeCustomTempDir() { … } } // namespace testing