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

Side by Side Diff: base/debug/trace_event_win_unittest.cc

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 | « no previous file | base/file_util.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 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/debug/trace_event.h" 5 #include "base/debug/trace_event.h"
6 6
7 #include <strstream> 7 #include <strstream>
8 8
9 #include "base/at_exit.h" 9 #include "base/at_exit.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 ASSERT_TRUE(tracelog != NULL); 150 ASSERT_TRUE(tracelog != NULL);
151 EXPECT_TRUE(tracelog->IsTracing()); 151 EXPECT_TRUE(tracelog->IsTracing());
152 } 152 }
153 153
154 void TearDown() { 154 void TearDown() {
155 EtwTraceProperties prop; 155 EtwTraceProperties prop;
156 if (controller_.session() != 0) 156 if (controller_.session() != 0)
157 EXPECT_HRESULT_SUCCEEDED(controller_.Stop(&prop)); 157 EXPECT_HRESULT_SUCCEEDED(controller_.Stop(&prop));
158 158
159 if (!log_file_.value().empty()) 159 if (!log_file_.value().empty())
160 file_util::Delete(log_file_, false); 160 base::Delete(log_file_, false);
161 } 161 }
162 162
163 void ExpectEvent(REFGUID guid, 163 void ExpectEvent(REFGUID guid,
164 EtwEventType type, 164 EtwEventType type,
165 const char* name, 165 const char* name,
166 size_t name_len, 166 size_t name_len,
167 const void* id, 167 const void* id,
168 const char* extra, 168 const char* extra,
169 size_t extra_len) { 169 size_t extra_len) {
170 // Build the trace event buffer we expect will result from this. 170 // Build the trace event buffer we expect will result from this.
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 kTraceEventTypeInstant, 307 kTraceEventTypeInstant,
308 kName, strlen(kName), 308 kName, strlen(kName),
309 kId, 309 kId,
310 kExtra, strlen(kExtra)); 310 kExtra, strlen(kExtra));
311 311
312 PlayLog(); 312 PlayLog();
313 } 313 }
314 314
315 } // namespace debug 315 } // namespace debug
316 } // namespace base 316 } // namespace base
OLDNEW
« no previous file with comments | « no previous file | base/file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698