diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/processor/minidump_unittest.cc | 4 | ||||
-rw-r--r-- | src/processor/stackwalker_amd64_unittest.cc | 6 | ||||
-rw-r--r-- | src/processor/stackwalker_arm_unittest.cc | 6 | ||||
-rw-r--r-- | src/processor/stackwalker_x86_unittest.cc | 6 | ||||
-rw-r--r-- | src/processor/synth_minidump.cc | 14 | ||||
-rw-r--r-- | src/processor/synth_minidump.h | 40 | ||||
-rw-r--r-- | src/processor/synth_minidump_unittest.cc | 6 |
7 files changed, 41 insertions, 41 deletions
diff --git a/src/processor/minidump_unittest.cc b/src/processor/minidump_unittest.cc index afbc4879..9b459ccc 100644 --- a/src/processor/minidump_unittest.cc +++ b/src/processor/minidump_unittest.cc @@ -61,8 +61,8 @@ using google_breakpad::SynthMinidump::Stream; using google_breakpad::SynthMinidump::String; using google_breakpad::SynthMinidump::SystemInfo; using google_breakpad::SynthMinidump::Thread; -using google_breakpad::TestAssembler::kBigEndian; -using google_breakpad::TestAssembler::kLittleEndian; +using google_breakpad::test_assembler::kBigEndian; +using google_breakpad::test_assembler::kLittleEndian; using std::ifstream; using std::istringstream; using std::string; diff --git a/src/processor/stackwalker_amd64_unittest.cc b/src/processor/stackwalker_amd64_unittest.cc index 6db04ffc..40448640 100644 --- a/src/processor/stackwalker_amd64_unittest.cc +++ b/src/processor/stackwalker_amd64_unittest.cc @@ -51,9 +51,9 @@ using google_breakpad::StackFrame; using google_breakpad::StackFrameAMD64; using google_breakpad::StackwalkerAMD64; using google_breakpad::SystemInfo; -using google_breakpad::TestAssembler::kLittleEndian; -using google_breakpad::TestAssembler::Label; -using google_breakpad::TestAssembler::Section; +using google_breakpad::test_assembler::kLittleEndian; +using google_breakpad::test_assembler::Label; +using google_breakpad::test_assembler::Section; using std::string; using std::vector; using testing::_; diff --git a/src/processor/stackwalker_arm_unittest.cc b/src/processor/stackwalker_arm_unittest.cc index 036b322c..a12d4eb9 100644 --- a/src/processor/stackwalker_arm_unittest.cc +++ b/src/processor/stackwalker_arm_unittest.cc @@ -53,9 +53,9 @@ using google_breakpad::StackFrameARM; using google_breakpad::StackwalkerARM; using google_breakpad::SystemInfo; using google_breakpad::WindowsFrameInfo; -using google_breakpad::TestAssembler::kLittleEndian; -using google_breakpad::TestAssembler::Label; -using google_breakpad::TestAssembler::Section; +using google_breakpad::test_assembler::kLittleEndian; +using google_breakpad::test_assembler::Label; +using google_breakpad::test_assembler::Section; using std::string; using std::vector; using testing::_; diff --git a/src/processor/stackwalker_x86_unittest.cc b/src/processor/stackwalker_x86_unittest.cc index 5af516d4..36c84d02 100644 --- a/src/processor/stackwalker_x86_unittest.cc +++ b/src/processor/stackwalker_x86_unittest.cc @@ -52,9 +52,9 @@ using google_breakpad::StackFrameX86; using google_breakpad::StackwalkerX86; using google_breakpad::SystemInfo; using google_breakpad::WindowsFrameInfo; -using google_breakpad::TestAssembler::kLittleEndian; -using google_breakpad::TestAssembler::Label; -using google_breakpad::TestAssembler::Section; +using google_breakpad::test_assembler::kLittleEndian; +using google_breakpad::test_assembler::Label; +using google_breakpad::test_assembler::Section; using std::string; using std::vector; using testing::_; diff --git a/src/processor/synth_minidump.cc b/src/processor/synth_minidump.cc index c25d421f..cebc0a6a 100644 --- a/src/processor/synth_minidump.cc +++ b/src/processor/synth_minidump.cc @@ -38,16 +38,16 @@ namespace google_breakpad { namespace SynthMinidump { Section::Section(const Dump &dump) - : TestAssembler::Section(dump.endianness()) { } + : test_assembler::Section(dump.endianness()) { } -void Section::CiteLocationIn(TestAssembler::Section *section) const { +void Section::CiteLocationIn(test_assembler::Section *section) const { if (this) (*section).D32(size_).D32(file_offset_); else (*section).D32(0).D32(0); } -void Stream::CiteStreamIn(TestAssembler::Section *section) const { +void Stream::CiteStreamIn(test_assembler::Section *section) const { section->D32(type_); CiteLocationIn(section); } @@ -114,11 +114,11 @@ String::String(const Dump &dump, const string &contents) : Section(dump) { D16(*i); } -void String::CiteStringIn(TestAssembler::Section *section) const { +void String::CiteStringIn(test_assembler::Section *section) const { section->D32(file_offset_); } -void Memory::CiteMemoryIn(TestAssembler::Section *section) const { +void Memory::CiteMemoryIn(test_assembler::Section *section) const { section->D64(address_); CiteLocationIn(section); } @@ -237,7 +237,7 @@ Dump::Dump(u_int64_t flags, Endianness endianness, u_int32_t version, u_int32_t date_time_stamp) - : TestAssembler::Section(endianness), + : test_assembler::Section(endianness), file_start_(0), stream_directory_(*this), stream_count_(0), @@ -301,7 +301,7 @@ void Dump::Finish() { // has the stream count and MDRVA. stream_count_label_ = stream_count_; stream_directory_rva_ = file_start_ + Size(); - Append(static_cast<TestAssembler::Section &>(stream_directory_)); + Append(static_cast<test_assembler::Section &>(stream_directory_)); } } // namespace SynthMinidump diff --git a/src/processor/synth_minidump.h b/src/processor/synth_minidump.h index 6219272d..f09a68fc 100644 --- a/src/processor/synth_minidump.h +++ b/src/processor/synth_minidump.h @@ -34,13 +34,13 @@ // synth_minidump.h: Interface to SynthMinidump: fake minidump generator. // // We treat a minidump file as the concatenation of a bunch of -// TestAssembler::Sections. The file header, stream directory, +// test_assembler::Sections. The file header, stream directory, // streams, memory regions, strings, and so on --- each is a Section // that eventually gets appended to the minidump. Dump, Memory, -// Context, Thread, and so on all inherit from TestAssembler::Section. +// Context, Thread, and so on all inherit from test_assembler::Section. // For example: // -// using google_breakpad::TestAssembler::kLittleEndian; +// using google_breakpad::test_assembler::kLittleEndian; // using google_breakpad::SynthMinidump::Context; // using google_breakpad::SynthMinidump::Dump; // using google_breakpad::SynthMinidump::Memory; @@ -49,7 +49,7 @@ // Dump minidump(MD_NORMAL, kLittleEndian); // // Memory stack1(minidump, 0x569eb0a9); -// ... build contents of stack1 with TestAssembler::Section functions ... +// ... build contents of stack1 with test_assembler::Section functions ... // // MDRawContextX86 x86_context1; // x86_context1.context_flags = MD_CONTEXT_X86; @@ -69,7 +69,7 @@ // EXPECT_TRUE(minidump.GetContents(&contents)); // // contents now holds the bytes of a minidump file // -// Because the TestAssembler classes let us write Label references to +// Because the test_assembler classes let us write Label references to // sections before the Labels' values are known, this gives us // flexibility in how we put the dump together: minidump pieces can // hold the file offsets of other minidump pieces before the @@ -103,7 +103,7 @@ // memory list stream. // // If you forget to Add some Section, the Dump::GetContents call will -// fail, as the TestAssembler::Labels used to cite the Section's +// fail, as the test_assembler::Labels used to cite the Section's // contents from elsewhere will still be undefined. #ifndef PROCESSOR_SYNTH_MINIDUMP_H_ #define PROCESSOR_SYNTH_MINIDUMP_H_ @@ -122,18 +122,18 @@ namespace google_breakpad { namespace SynthMinidump { using std::string; -using TestAssembler::Endianness; -using TestAssembler::kBigEndian; -using TestAssembler::kLittleEndian; -using TestAssembler::kUnsetEndian; -using TestAssembler::Label; +using test_assembler::Endianness; +using test_assembler::kBigEndian; +using test_assembler::kLittleEndian; +using test_assembler::kUnsetEndian; +using test_assembler::Label; class Dump; class Memory; class String; -// A TestAssembler::Section which will be appended to a minidump. -class Section: public TestAssembler::Section { +// A test_assembler::Section which will be appended to a minidump. +class Section: public test_assembler::Section { public: explicit Section(const Dump &dump); @@ -145,7 +145,7 @@ class Section: public TestAssembler::Section { // bad, if such language exists. Having this function handle NULL // 'this' is convenient, but if it causes trouble, it's not hard to // do differently.) - void CiteLocationIn(TestAssembler::Section *section) const; + void CiteLocationIn(test_assembler::Section *section) const; // Note that this section's contents are complete, and that it has // been placed in the minidump file at OFFSET. The 'Add' member @@ -165,11 +165,11 @@ class Section: public TestAssembler::Section { class Stream: public Section { public: // Create a stream of type TYPE. You can append whatever contents - // you like to this stream using the TestAssembler::Section methods. + // you like to this stream using the test_assembler::Section methods. Stream(const Dump &dump, u_int32_t type) : Section(dump), type_(type) { } // Append an MDRawDirectory referring to this stream to SECTION. - void CiteStreamIn(TestAssembler::Section *section) const; + void CiteStreamIn(test_assembler::Section *section) const; private: // The type of this stream. @@ -202,7 +202,7 @@ class String: public Section { String(const Dump &dump, const string &value); // Append an MDRVA referring to this string to SECTION. - void CiteStringIn(TestAssembler::Section *section) const; + void CiteStringIn(test_assembler::Section *section) const; }; // A range of memory contents. 'Add'ing a memory range to a minidump @@ -215,7 +215,7 @@ class Memory: public Section { : Section(dump), address_(address) { start() = address; } // Append an MDMemoryDescriptor referring to this memory range to SECTION. - void CiteMemoryIn(TestAssembler::Section *section) const; + void CiteMemoryIn(test_assembler::Section *section) const; private: // The process address from which these memory contents were taken. @@ -297,10 +297,10 @@ class List: public Stream { Label count_label_; }; -class Dump: public TestAssembler::Section { +class Dump: public test_assembler::Section { public: - // Create a TestAssembler::Section containing a minidump file whose + // Create a test_assembler::Section containing a minidump file whose // header uses the given values. ENDIANNESS determines the // endianness of the signature; we set this section's default // endianness by this. diff --git a/src/processor/synth_minidump_unittest.cc b/src/processor/synth_minidump_unittest.cc index 888053bd..adad4ae8 100644 --- a/src/processor/synth_minidump_unittest.cc +++ b/src/processor/synth_minidump_unittest.cc @@ -50,9 +50,9 @@ using google_breakpad::SynthMinidump::Stream; using google_breakpad::SynthMinidump::String; using google_breakpad::SynthMinidump::SystemInfo; using google_breakpad::SynthMinidump::Thread; -using google_breakpad::TestAssembler::kBigEndian; -using google_breakpad::TestAssembler::kLittleEndian; -using google_breakpad::TestAssembler::Label; +using google_breakpad::test_assembler::kBigEndian; +using google_breakpad::test_assembler::kLittleEndian; +using google_breakpad::test_assembler::Label; using std::string; TEST(Section, Simple) { |