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

Side by Side Diff: content/common/sandbox_mac_fontloading_unittest.mm

Issue 16950028: Move file_util::Delete to the base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | « content/common/sandbox_mac_diraccess_unittest.mm ('k') | ipc/ipc_channel_posix_unittest.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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/mac/scoped_cftyperef.h" 9 #include "base/mac/scoped_cftyperef.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 EXPECT_GT(result.font_data_size, 0U); 115 EXPECT_GT(result.font_data_size, 0U);
116 EXPECT_GT(result.font_id, 0U); 116 EXPECT_GT(result.font_id, 0U);
117 117
118 file_util::WriteFileDescriptor(fileno(temp_file), 118 file_util::WriteFileDescriptor(fileno(temp_file),
119 static_cast<const char *>(result.font_data.memory()), 119 static_cast<const char *>(result.font_data.memory()),
120 result.font_data_size); 120 result.font_data_size);
121 121
122 ASSERT_TRUE(RunTestInSandbox(SANDBOX_TYPE_RENDERER, 122 ASSERT_TRUE(RunTestInSandbox(SANDBOX_TYPE_RENDERER,
123 "FontLoadingTestCase", temp_file_path.value().c_str())); 123 "FontLoadingTestCase", temp_file_path.value().c_str()));
124 temp_file_closer.reset(); 124 temp_file_closer.reset();
125 ASSERT_TRUE(file_util::Delete(temp_file_path, false)); 125 ASSERT_TRUE(base::Delete(temp_file_path, false));
126 } 126 }
127 127
128 } // namespace content 128 } // namespace content
OLDNEW
« no previous file with comments | « content/common/sandbox_mac_diraccess_unittest.mm ('k') | ipc/ipc_channel_posix_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698