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

Side by Side Diff: minidump/minidump_module_writer_test.cc

Issue 1335353002: Replace implicit_cast usage with static_cast. (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: implicitcast: drops Created 5 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 | « minidump/minidump_module_writer.cc ('k') | minidump/minidump_system_info_writer.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 2014 The Crashpad Authors. All rights reserved. 1 // Copyright 2014 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 14 matching lines...) Expand all
25 #include "base/strings/utf_string_conversions.h" 25 #include "base/strings/utf_string_conversions.h"
26 #include "gtest/gtest.h" 26 #include "gtest/gtest.h"
27 #include "minidump/minidump_extensions.h" 27 #include "minidump/minidump_extensions.h"
28 #include "minidump/minidump_file_writer.h" 28 #include "minidump/minidump_file_writer.h"
29 #include "minidump/test/minidump_file_writer_test_util.h" 29 #include "minidump/test/minidump_file_writer_test_util.h"
30 #include "minidump/test/minidump_string_writer_test_util.h" 30 #include "minidump/test/minidump_string_writer_test_util.h"
31 #include "minidump/test/minidump_writable_test_util.h" 31 #include "minidump/test/minidump_writable_test_util.h"
32 #include "snapshot/test/test_module_snapshot.h" 32 #include "snapshot/test/test_module_snapshot.h"
33 #include "test/gtest_death_check.h" 33 #include "test/gtest_death_check.h"
34 #include "util/file/string_file.h" 34 #include "util/file/string_file.h"
35 #include "util/misc/implicit_cast.h"
35 #include "util/misc/uuid.h" 36 #include "util/misc/uuid.h"
36 #include "util/stdlib/pointer_container.h" 37 #include "util/stdlib/pointer_container.h"
37 38
38 namespace crashpad { 39 namespace crashpad {
39 namespace test { 40 namespace test {
40 namespace { 41 namespace {
41 42
42 void GetModuleListStream(const std::string& file_contents, 43 void GetModuleListStream(const std::string& file_contents,
43 const MINIDUMP_MODULE_LIST** module_list) { 44 const MINIDUMP_MODULE_LIST** module_list) {
44 const size_t kDirectoryOffset = sizeof(MINIDUMP_HEADER); 45 const size_t kDirectoryOffset = sizeof(MINIDUMP_HEADER);
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 minidump_file_writer.AddStream(module_list_writer.Pass()); 751 minidump_file_writer.AddStream(module_list_writer.Pass());
751 752
752 StringFile string_file; 753 StringFile string_file;
753 ASSERT_DEATH_CHECK(minidump_file_writer.WriteEverything(&string_file), 754 ASSERT_DEATH_CHECK(minidump_file_writer.WriteEverything(&string_file),
754 "name_"); 755 "name_");
755 } 756 }
756 757
757 } // namespace 758 } // namespace
758 } // namespace test 759 } // namespace test
759 } // namespace crashpad 760 } // namespace crashpad
OLDNEW
« no previous file with comments | « minidump/minidump_module_writer.cc ('k') | minidump/minidump_system_info_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698