mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-03-07 04:36:30 +00:00
Breakpad test support: Move test_assembler.{h,cc} from src/processor to src/common.
The google_breakpad::TestAssembler classes are used in both the processor's and the Linux dumper's test suites, and will soon be used in the Mac dumper's tests as well. This patch moves their source files from src/processor to src/common. a=jimblandy, r=thestig git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@574 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
@@ -40,8 +40,8 @@
|
||||
#include <string>
|
||||
|
||||
#include "common/dwarf/dwarf2enums.h"
|
||||
#include "common/test_assembler.h"
|
||||
#include "google_breakpad/common/breakpad_types.h"
|
||||
#include "processor/test_assembler.h"
|
||||
|
||||
namespace google_breakpad {
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
#include <cstdio>
|
||||
#include <iterator>
|
||||
|
||||
#include "processor/test_assembler.h"
|
||||
#include "common/test_assembler.h"
|
||||
|
||||
namespace google_breakpad {
|
||||
namespace TestAssembler {
|
||||
@@ -35,7 +35,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "breakpad_googletest_includes.h"
|
||||
#include "processor/test_assembler.h"
|
||||
#include "common/test_assembler.h"
|
||||
|
||||
using google_breakpad::TestAssembler::Label;
|
||||
using google_breakpad::TestAssembler::Section;
|
||||
@@ -36,6 +36,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include "breakpad_googletest_includes.h"
|
||||
#include "common/test_assembler.h"
|
||||
#include "google_breakpad/common/minidump_format.h"
|
||||
#include "google_breakpad/processor/basic_source_line_resolver.h"
|
||||
#include "google_breakpad/processor/call_stack.h"
|
||||
@@ -43,7 +44,6 @@
|
||||
#include "google_breakpad/processor/stack_frame_cpu.h"
|
||||
#include "processor/stackwalker_unittest_utils.h"
|
||||
#include "processor/stackwalker_amd64.h"
|
||||
#include "processor/test_assembler.h"
|
||||
|
||||
using google_breakpad::BasicSourceLineResolver;
|
||||
using google_breakpad::CallStack;
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include "breakpad_googletest_includes.h"
|
||||
#include "common/test_assembler.h"
|
||||
#include "google_breakpad/common/minidump_format.h"
|
||||
#include "google_breakpad/processor/basic_source_line_resolver.h"
|
||||
#include "google_breakpad/processor/call_stack.h"
|
||||
@@ -43,7 +44,6 @@
|
||||
#include "google_breakpad/processor/stack_frame_cpu.h"
|
||||
#include "processor/stackwalker_unittest_utils.h"
|
||||
#include "processor/stackwalker_arm.h"
|
||||
#include "processor/test_assembler.h"
|
||||
#include "processor/windows_frame_info.h"
|
||||
|
||||
using google_breakpad::BasicSourceLineResolver;
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include "breakpad_googletest_includes.h"
|
||||
#include "common/test_assembler.h"
|
||||
#include "google_breakpad/common/minidump_format.h"
|
||||
#include "google_breakpad/processor/basic_source_line_resolver.h"
|
||||
#include "google_breakpad/processor/call_stack.h"
|
||||
@@ -42,7 +43,6 @@
|
||||
#include "google_breakpad/processor/stack_frame_cpu.h"
|
||||
#include "processor/stackwalker_unittest_utils.h"
|
||||
#include "processor/stackwalker_x86.h"
|
||||
#include "processor/test_assembler.h"
|
||||
#include "processor/windows_frame_info.h"
|
||||
|
||||
using google_breakpad::BasicSourceLineResolver;
|
||||
|
||||
@@ -112,9 +112,9 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "common/test_assembler.h"
|
||||
#include "google_breakpad/common/breakpad_types.h"
|
||||
#include "google_breakpad/common/minidump_format.h"
|
||||
#include "processor/test_assembler.h"
|
||||
|
||||
namespace google_breakpad {
|
||||
|
||||
|
||||
@@ -29,7 +29,8 @@
|
||||
|
||||
// Original author: Jim Blandy <jimb@mozilla.com> <jimb@red-bean.com>
|
||||
|
||||
// test_assembler_unittest.cc: Unit tests for google_breakpad::TestAssembler.
|
||||
// synth_minidump_unittest.cc: Unit tests for google_breakpad::SynthMinidump
|
||||
// classes.
|
||||
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
|
||||
@@ -141,8 +141,7 @@ gmock-all.o: override CPPFLAGS += $(GTEST_CPPFLAGS) $(GMOCK_CPPFLAGS)
|
||||
|
||||
|
||||
### google_breakpad::TestAssembler, for constructing binary test data
|
||||
VPATH += $(SRC)/processor
|
||||
TEST_ASSEMBLER_CPPFLAGS = -I$(SRC)/processor
|
||||
VPATH += $(SRC)/common
|
||||
test_assembler.o: test_assembler.cc
|
||||
test_assembler.o: override CPPFLAGS += $(TEST_ASSEMBLER_CPPFLAGS)
|
||||
|
||||
@@ -328,7 +327,7 @@ bytereader_unittest: \
|
||||
CPP_EXECUTABLES += bytereader_unittest
|
||||
bytereader_unittest.o: bytereader_unittest.cc
|
||||
bytereader_unittest.o: override CPPFLAGS += $(GTEST_CPPFLAGS) \
|
||||
$(GMOCK_CPPFLAGS)
|
||||
$(GMOCK_CPPFLAGS)
|
||||
clean::
|
||||
rm -f bytereader_unittest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user