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

Side by Side Diff: minidump/test/minidump_memory_writer_test_util.h

Issue 983103004: win: fixes for Windows x64 (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: mac Created 5 years, 9 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_writable_test.cc ('k') | minidump/test/minidump_memory_writer_test_util.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 26 matching lines...) Expand all
37 public: 37 public:
38 TestMinidumpMemoryWriter(uint64_t base_address, size_t size, uint8_t value); 38 TestMinidumpMemoryWriter(uint64_t base_address, size_t size, uint8_t value);
39 ~TestMinidumpMemoryWriter(); 39 ~TestMinidumpMemoryWriter();
40 40
41 protected: 41 protected:
42 // MinidumpMemoryWriter: 42 // MinidumpMemoryWriter:
43 uint64_t MemoryRangeBaseAddress() const override; 43 uint64_t MemoryRangeBaseAddress() const override;
44 size_t MemoryRangeSize() const override; 44 size_t MemoryRangeSize() const override;
45 45
46 // MinidumpWritable: 46 // MinidumpWritable:
47 bool WillWriteAtOffsetImpl(off_t offset) override; 47 bool WillWriteAtOffsetImpl(FileOffset offset) override;
48 bool WriteObject(FileWriterInterface* file_writer) override; 48 bool WriteObject(FileWriterInterface* file_writer) override;
49 49
50 private: 50 private:
51 uint64_t base_address_; 51 uint64_t base_address_;
52 off_t expected_offset_; 52 FileOffset expected_offset_;
53 size_t size_; 53 size_t size_;
54 uint8_t value_; 54 uint8_t value_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(TestMinidumpMemoryWriter); 56 DISALLOW_COPY_AND_ASSIGN(TestMinidumpMemoryWriter);
57 }; 57 };
58 58
59 //! \brief Verifies, via gtest assertions, that a MINIDUMP_MEMORY_DESCRIPTOR 59 //! \brief Verifies, via gtest assertions, that a MINIDUMP_MEMORY_DESCRIPTOR
60 //! structure contains expected values. 60 //! structure contains expected values.
61 //! 61 //!
62 //! In \a expected and \a observed, 62 //! In \a expected and \a observed,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 const MINIDUMP_MEMORY_DESCRIPTOR* expected, 96 const MINIDUMP_MEMORY_DESCRIPTOR* expected,
97 const MINIDUMP_MEMORY_DESCRIPTOR* observed, 97 const MINIDUMP_MEMORY_DESCRIPTOR* observed,
98 const std::string& file_contents, 98 const std::string& file_contents,
99 uint8_t value, 99 uint8_t value,
100 bool at_eof); 100 bool at_eof);
101 101
102 } // namespace test 102 } // namespace test
103 } // namespace crashpad 103 } // namespace crashpad
104 104
105 #endif // CRASHPAD_MINIDUMP_TEST_MINIDUMP_MEMORY_WRITER_TEST_UTIL_H_ 105 #endif // CRASHPAD_MINIDUMP_TEST_MINIDUMP_MEMORY_WRITER_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « minidump/minidump_writable_test.cc ('k') | minidump/test/minidump_memory_writer_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698