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

Side by Side Diff: snapshot/test/test_exception_snapshot.h

Issue 898013002: win: Fixes for minidump_file_writer_test (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@minidump_test-6
Patch Set: Created 5 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
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 //! 43 //!
44 //! \attention This returns a non-`const` pointer to this object’s private 44 //! \attention This returns a non-`const` pointer to this object’s private
45 //! data so that a caller can populate the context structure directly. 45 //! data so that a caller can populate the context structure directly.
46 //! This is done because providing setter interfaces to each field in the 46 //! This is done because providing setter interfaces to each field in the
47 //! context structure would be unwieldy and cumbersome. Care must be taken 47 //! context structure would be unwieldy and cumbersome. Care must be taken
48 //! to populate the context structure correctly. 48 //! to populate the context structure correctly.
49 CPUContext* MutableContext() { return &context_; } 49 CPUContext* MutableContext() { return &context_; }
50 50
51 void SetThreadID(uint64_t thread_id) { thread_id_ = thread_id; } 51 void SetThreadID(uint64_t thread_id) { thread_id_ = thread_id; }
52 void SetException(uint32_t exception) { exception_ = exception; } 52 void SetException(uint32_t exception) { exception_ = exception; }
53 void SetExceptionInfo(uint32_t exception_info) { 53 void SetExceptionInfo(uint32_t exception_information) {
Mark Mentovai 2015/02/05 14:24:32 Ha!
54 exception_info_ = exception_info; 54 exception_info_ = exception_information;
55 } 55 }
56 void SetExceptionAddress(uint64_t exception_address) { 56 void SetExceptionAddress(uint64_t exception_address) {
57 exception_address_ = exception_address; 57 exception_address_ = exception_address;
58 } 58 }
59 void SetCodes(const std::vector<uint64_t>& codes) { codes_ = codes; } 59 void SetCodes(const std::vector<uint64_t>& codes) { codes_ = codes; }
60 60
61 // ExceptionSnapshot: 61 // ExceptionSnapshot:
62 62
63 const CPUContext* Context() const override; 63 const CPUContext* Context() const override;
64 uint64_t ThreadID() const override; 64 uint64_t ThreadID() const override;
(...skipping 14 matching lines...) Expand all
79 uint64_t exception_address_; 79 uint64_t exception_address_;
80 std::vector<uint64_t> codes_; 80 std::vector<uint64_t> codes_;
81 81
82 DISALLOW_COPY_AND_ASSIGN(TestExceptionSnapshot); 82 DISALLOW_COPY_AND_ASSIGN(TestExceptionSnapshot);
83 }; 83 };
84 84
85 } // namespace test 85 } // namespace test
86 } // namespace crashpad 86 } // namespace crashpad
87 87
88 #endif // CRASHPAD_SNAPSHOT_TEST_TEST_EXCEPTION_SNAPSHOT_H_ 88 #endif // CRASHPAD_SNAPSHOT_TEST_TEST_EXCEPTION_SNAPSHOT_H_
OLDNEW
« minidump/minidump_file_writer_test.cc ('K') | « minidump/minidump_file_writer_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698