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

Side by Side Diff: base/debug/stack_trace_unittest.cc

Issue 2807463004: GN: aix port along with linux_s390x, linux_ppc64 and linux_ppc64le support. (Closed)
Patch Set: removed the changes from //base/BUILD.gn Created 3 years, 8 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 | « base/debug/stack_trace_posix.cc ('k') | base/files/file_enumerator_posix.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stddef.h> 5 #include <stddef.h>
6 6
7 #include <limits> 7 #include <limits>
8 #include <sstream> 8 #include <sstream>
9 #include <string> 9 #include <string>
10 10
(...skipping 21 matching lines...) Expand all
32 #endif 32 #endif
33 33
34 // Note: On Linux, this test currently only fully works on Debug builds. 34 // Note: On Linux, this test currently only fully works on Debug builds.
35 // See comments in the #ifdef soup if you intend to change this. 35 // See comments in the #ifdef soup if you intend to change this.
36 #if defined(OS_WIN) 36 #if defined(OS_WIN)
37 // Always fails on Windows: crbug.com/32070 37 // Always fails on Windows: crbug.com/32070
38 #define MAYBE_OutputToStream DISABLED_OutputToStream 38 #define MAYBE_OutputToStream DISABLED_OutputToStream
39 #else 39 #else
40 #define MAYBE_OutputToStream OutputToStream 40 #define MAYBE_OutputToStream OutputToStream
41 #endif 41 #endif
42 #if !defined(__UCLIBC__) 42 #if !defined(__UCLIBC__) && !defined(_AIX)
43 TEST_F(StackTraceTest, MAYBE_OutputToStream) { 43 TEST_F(StackTraceTest, MAYBE_OutputToStream) {
44 StackTrace trace; 44 StackTrace trace;
45 45
46 // Dump the trace into a string. 46 // Dump the trace into a string.
47 std::ostringstream os; 47 std::ostringstream os;
48 trace.OutputToStream(&os); 48 trace.OutputToStream(&os);
49 std::string backtrace_message = os.str(); 49 std::string backtrace_message = os.str();
50 50
51 // ToString() should produce the same output. 51 // ToString() should produce the same output.
52 EXPECT_EQ(backtrace_message, trace.ToString()); 52 EXPECT_EQ(backtrace_message, trace.ToString());
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 #endif 311 #endif
312 312
313 TEST_F(StackTraceTest, MAYBE_StackEnd) { 313 TEST_F(StackTraceTest, MAYBE_StackEnd) {
314 EXPECT_NE(0u, GetStackEnd()); 314 EXPECT_NE(0u, GetStackEnd());
315 } 315 }
316 316
317 #endif // BUILDFLAG(CAN_UNWIND_WITH_FRAME_POINTERS) 317 #endif // BUILDFLAG(CAN_UNWIND_WITH_FRAME_POINTERS)
318 318
319 } // namespace debug 319 } // namespace debug
320 } // namespace base 320 } // namespace base
OLDNEW
« no previous file with comments | « base/debug/stack_trace_posix.cc ('k') | base/files/file_enumerator_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698