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

Side by Side Diff: chrome_frame/crash_reporting/minidump_test.cc

Issue 12211108: Rename FilePath -> base::FilePath in various toplevel directories (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « chrome_frame/chrome_tab.cc ('k') | chrome_frame/delete_chrome_history.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 <windows.h> 5 #include <windows.h>
6 #include <objbase.h> 6 #include <objbase.h>
7 #include <dbghelp.h> 7 #include <dbghelp.h>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 275
276 276
277 return false; 277 return false;
278 } 278 }
279 279
280 protected: 280 protected:
281 base::win::ScopedHandle dump_file_handle_; 281 base::win::ScopedHandle dump_file_handle_;
282 base::win::ScopedHandle dump_file_mapping_; 282 base::win::ScopedHandle dump_file_mapping_;
283 void* dump_file_view_; 283 void* dump_file_view_;
284 284
285 FilePath dump_file_; 285 base::FilePath dump_file_;
286 }; 286 };
287 287
288 TEST_F(MinidumpTest, Version) { 288 TEST_F(MinidumpTest, Version) {
289 API_VERSION* version = ::ImagehlpApiVersion(); 289 API_VERSION* version = ::ImagehlpApiVersion();
290 290
291 VLOG(1) << "Imagehlp Api Version: " << version->MajorVersion << "." 291 VLOG(1) << "Imagehlp Api Version: " << version->MajorVersion << "."
292 << version->MinorVersion << "." << version->Revision; 292 << version->MinorVersion << "." << version->Revision;
293 293
294 HMODULE dbg_help = ::GetModuleHandle(L"dbghelp.dll"); 294 HMODULE dbg_help = ::GetModuleHandle(L"dbghelp.dll");
295 ASSERT_TRUE(dbg_help != NULL); 295 ASSERT_TRUE(dbg_help != NULL);
296 296
297 wchar_t dbg_help_file[1024] = {}; 297 wchar_t dbg_help_file[1024] = {};
298 ASSERT_TRUE(::GetModuleFileName(dbg_help, 298 ASSERT_TRUE(::GetModuleFileName(dbg_help,
299 dbg_help_file, 299 dbg_help_file,
300 arraysize(dbg_help_file))); 300 arraysize(dbg_help_file)));
301 scoped_ptr<FileVersionInfo> file_info( 301 scoped_ptr<FileVersionInfo> file_info(
302 FileVersionInfo::CreateFileVersionInfo(FilePath(dbg_help_file))); 302 FileVersionInfo::CreateFileVersionInfo(base::FilePath(dbg_help_file)));
303 ASSERT_TRUE(file_info != NULL); 303 ASSERT_TRUE(file_info != NULL);
304 304
305 VLOG(1) << "DbgHelp.dll version: " << file_info->file_version(); 305 VLOG(1) << "DbgHelp.dll version: " << file_info->file_version();
306 } 306 }
307 307
308 TEST_F(MinidumpTest, Normal) { 308 TEST_F(MinidumpTest, Normal) {
309 EXPECT_TRUE(WriteDump(MiniDumpNormal)); 309 EXPECT_TRUE(WriteDump(MiniDumpNormal));
310 310
311 // We expect threads, modules and some memory. 311 // We expect threads, modules and some memory.
312 EXPECT_TRUE(DumpHasStream(ThreadListStream)); 312 EXPECT_TRUE(DumpHasStream(ThreadListStream));
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 CommandLine::Init(argc, argv); 435 CommandLine::Init(argc, argv);
436 436
437 logging::InitLogging( 437 logging::InitLogging(
438 L"CON", 438 L"CON",
439 logging::LOG_TO_BOTH_FILE_AND_SYSTEM_DEBUG_LOG, 439 logging::LOG_TO_BOTH_FILE_AND_SYSTEM_DEBUG_LOG,
440 logging::DONT_LOCK_LOG_FILE, 440 logging::DONT_LOCK_LOG_FILE,
441 logging::APPEND_TO_OLD_LOG_FILE, 441 logging::APPEND_TO_OLD_LOG_FILE,
442 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); 442 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS);
443 return RUN_ALL_TESTS(); 443 return RUN_ALL_TESTS();
444 } 444 }
OLDNEW
« no previous file with comments | « chrome_frame/chrome_tab.cc ('k') | chrome_frame/delete_chrome_history.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698