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

Side by Side Diff: base/test/test_file_util_posix.cc

Issue 15735027: Use a direct include of utf_string_conversions.h in android_webview/, apps/, ash/, base/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « base/sys_info_posix.cc ('k') | base/test/test_shortcut_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/test/test_file_util.h" 5 #include "base/test/test_file_util.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <fcntl.h> 8 #include <fcntl.h>
9 #include <sys/stat.h> 9 #include <sys/stat.h>
10 #include <sys/types.h> 10 #include <sys/types.h>
11 11
12 #include <string> 12 #include <string>
13 13
14 #include "base/file_util.h" 14 #include "base/file_util.h"
15 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/string_util.h" 17 #include "base/string_util.h"
18 #include "base/utf_string_conversions.h" 18 #include "base/strings/utf_string_conversions.h"
19 19
20 using base::MakeAbsoluteFilePath; 20 using base::MakeAbsoluteFilePath;
21 21
22 namespace file_util { 22 namespace file_util {
23 23
24 namespace { 24 namespace {
25 25
26 // Deny |permission| on the file |path|. 26 // Deny |permission| on the file |path|.
27 bool DenyFilePermission(const base::FilePath& path, mode_t permission) { 27 bool DenyFilePermission(const base::FilePath& path, mode_t permission) {
28 struct stat stat_buf; 28 struct stat stat_buf;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 DCHECK(info_ != NULL); 109 DCHECK(info_ != NULL);
110 DCHECK_NE(0u, length_); 110 DCHECK_NE(0u, length_);
111 } 111 }
112 112
113 PermissionRestorer::~PermissionRestorer() { 113 PermissionRestorer::~PermissionRestorer() {
114 if (!RestorePermissionInfo(path_, info_, length_)) 114 if (!RestorePermissionInfo(path_, info_, length_))
115 NOTREACHED(); 115 NOTREACHED();
116 } 116 }
117 117
118 } // namespace file_util 118 } // namespace file_util
OLDNEW
« no previous file with comments | « base/sys_info_posix.cc ('k') | base/test/test_shortcut_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698