henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license |
| 5 | * that can be found in the LICENSE file in the root of the source |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
jbauch | 555604a | 2016-04-26 03:13:22 -0700 | [diff] [blame] | 11 | #include <memory> |
| 12 | |
kjellander | f1c5ebf | 2017-06-30 05:27:14 -0700 | [diff] [blame^] | 13 | #include "webrtc/rtc_base/fileutils.h" |
| 14 | #include "webrtc/rtc_base/gunit.h" |
| 15 | #include "webrtc/rtc_base/pathutils.h" |
| 16 | #include "webrtc/rtc_base/stream.h" |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 17 | |
| 18 | namespace rtc { |
| 19 | |
phoglund | bb73873 | 2016-07-15 03:57:12 -0700 | [diff] [blame] | 20 | #if defined (WEBRTC_ANDROID) |
| 21 | // Fails on Android: https://bugs.chromium.org/p/webrtc/issues/detail?id=4364. |
| 22 | #define MAYBE_FilesystemTest DISABLED_FilesystemTest |
| 23 | #else |
| 24 | #define MAYBE_FilesystemTest FilesystemTest |
| 25 | #endif |
| 26 | |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 27 | // Make sure we can get a temp folder for the later tests. |
phoglund | bb73873 | 2016-07-15 03:57:12 -0700 | [diff] [blame] | 28 | TEST(MAYBE_FilesystemTest, GetTemporaryFolder) { |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 29 | Pathname path; |
deadbeef | 37f5ecf | 2017-02-27 14:06:41 -0800 | [diff] [blame] | 30 | EXPECT_TRUE(Filesystem::GetTemporaryFolder(path, true, nullptr)); |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 31 | } |
| 32 | |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 33 | } // namespace rtc |