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

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

Issue 2707973004: mac: Implement GetStackEnd(). (Closed)
Patch Set: Fix compile error. Created 3 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
« no previous file with comments | « base/debug/stack_trace.cc ('k') | no next file » | 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 #define MAYBE_TraceStackFramePointers DISABLED_TraceStackFramePointers 296 #define MAYBE_TraceStackFramePointers DISABLED_TraceStackFramePointers
297 #else 297 #else
298 #define MAYBE_TraceStackFramePointers TraceStackFramePointers 298 #define MAYBE_TraceStackFramePointers TraceStackFramePointers
299 #endif 299 #endif
300 TEST_F(StackTraceTest, MAYBE_TraceStackFramePointers) { 300 TEST_F(StackTraceTest, MAYBE_TraceStackFramePointers) {
301 constexpr size_t kDepth = 5; 301 constexpr size_t kDepth = 5;
302 const void* frames[kDepth]; 302 const void* frames[kDepth];
303 ExpectStackFramePointers<kDepth>(frames, kDepth); 303 ExpectStackFramePointers<kDepth>(frames, kDepth);
304 } 304 }
305 305
306 #if defined(OS_ANDROID) || defined(OS_MACOSX)
307 #define MAYBE_StackEnd StackEnd
308 #else
309 #define MAYBE_StackEnd DISABLED_StackEnd
310 #endif
311
312 TEST_F(StackTraceTest, MAYBE_StackEnd) {
313 EXPECT_NE(0u, GetStackEnd());
314 }
315
306 #endif // HAVE_TRACE_STACK_FRAME_POINTERS 316 #endif // HAVE_TRACE_STACK_FRAME_POINTERS
307 317
308 } // namespace debug 318 } // namespace debug
309 } // namespace base 319 } // namespace base
OLDNEW
« no previous file with comments | « base/debug/stack_trace.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698