Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: webrtc/test/testsupport/fileutils_unittest.cc

Issue 3011943002: Move optional.h to webrtc/api/ (Closed)
Patch Set: Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/test/testsupport/fileutils.h ('k') | webrtc/test/video_capturer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #include "webrtc/test/testsupport/fileutils.h" 11 #include "webrtc/test/testsupport/fileutils.h"
12 12
13 #include <stdio.h> 13 #include <stdio.h>
14 14
15 #include <fstream> 15 #include <fstream>
16 #include <iostream> 16 #include <iostream>
17 #include <list> 17 #include <list>
18 #include <string> 18 #include <string>
19 19
20 #include "webrtc/api/optional.h"
20 #include "webrtc/rtc_base/checks.h" 21 #include "webrtc/rtc_base/checks.h"
21 #include "webrtc/rtc_base/optional.h"
22 #include "webrtc/rtc_base/pathutils.h" 22 #include "webrtc/rtc_base/pathutils.h"
23 #include "webrtc/test/gtest.h" 23 #include "webrtc/test/gtest.h"
24 24
25 #ifdef WIN32 25 #ifdef WIN32
26 #define chdir _chdir 26 #define chdir _chdir
27 static const char* kPathDelimiter = "\\"; 27 static const char* kPathDelimiter = "\\";
28 #else 28 #else
29 static const char* kPathDelimiter = "/"; 29 static const char* kPathDelimiter = "/";
30 #endif 30 #endif
31 31
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 EXPECT_TRUE(dir_content); 231 EXPECT_TRUE(dir_content);
232 EXPECT_EQ(2u, dir_content->size()); 232 EXPECT_EQ(2u, dir_content->size());
233 EXPECT_NO_FATAL_FAILURE(CleanDir(temp_directory, &num_deleted_entries)); 233 EXPECT_NO_FATAL_FAILURE(CleanDir(temp_directory, &num_deleted_entries));
234 EXPECT_EQ(2u, num_deleted_entries); 234 EXPECT_EQ(2u, num_deleted_entries);
235 EXPECT_TRUE(RemoveDir(temp_directory)); 235 EXPECT_TRUE(RemoveDir(temp_directory));
236 EXPECT_FALSE(DirExists(temp_directory)); 236 EXPECT_FALSE(DirExists(temp_directory));
237 } 237 }
238 238
239 } // namespace test 239 } // namespace test
240 } // namespace webrtc 240 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/test/testsupport/fileutils.h ('k') | webrtc/test/video_capturer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698