aboutsummaryrefslogtreecommitdiff
path: root/src/client/mac/handler/testcases/breakpad_nlist_test.h
diff options
context:
space:
mode:
authornealsid <nealsid@4c0a9323-5329-0410-9bdc-e9ce6186880e>2008-04-25 00:37:19 +0000
committernealsid <nealsid@4c0a9323-5329-0410-9bdc-e9ce6186880e>2008-04-25 00:37:19 +0000
commit4c39c138fe2a68206c2143d7401a113a1c4b130b (patch)
tree3fce0e66f9fafc93cfc16c5db17458222cbf832a /src/client/mac/handler/testcases/breakpad_nlist_test.h
parentAdd one more parameter to the ClientDumpRequestCallback in crash generation s... (diff)
downloadbreakpad-4c39c138fe2a68206c2143d7401a113a1c4b130b.tar.xz
Issue 258: Added test cases for ReadTaskMemory, reorganized project file, renamed filenames inside comments
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@263 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client/mac/handler/testcases/breakpad_nlist_test.h')
-rw-r--r--src/client/mac/handler/testcases/breakpad_nlist_test.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/client/mac/handler/testcases/breakpad_nlist_test.h b/src/client/mac/handler/testcases/breakpad_nlist_test.h
new file mode 100644
index 00000000..f2416e38
--- /dev/null
+++ b/src/client/mac/handler/testcases/breakpad_nlist_test.h
@@ -0,0 +1,29 @@
+/*
+ * breakpad_nlist_test.h
+ * minidump_test
+ *
+ * Created by Neal Sidhwaney on 4/13/08.
+ * Copyright 2008 Google Inc. All rights reserved.
+ *
+ */
+
+#include <CPlusTest/CPlusTest.h>
+
+class BreakpadNlistTest : public TestCase {
+private:
+
+ // nm dumps multiple addresses for the same symbol in
+ // /usr/lib/dyld. So we track those so we don't report failures
+ // in mismatches between what our nlist returns and what nm has
+ // for the duplicate symbols.
+ bool IsSymbolMoreThanOnceInDyld(const char *symbolName);
+
+public:
+ BreakpadNlistTest(TestInvocation* invocation);
+ virtual ~BreakpadNlistTest();
+
+
+ /* This test case runs nm on /usr/lib/dyld and then compares the
+ output of every symbol to what our nlist implementation returns */
+ void CompareToNM();
+};