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

Side by Side Diff: base/logging_unittest.cc

Issue 2707123002: test: disable LoggingTest.CheckCausesDistinctBreakpoints on iOS (Closed)
Patch Set: 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 | « no previous file | 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 "base/compiler_specific.h" 5 #include "base/compiler_specific.h"
6 #include "base/logging.h" 6 #include "base/logging.h"
7 #include "base/macros.h" 7 #include "base/macros.h"
8 8
9 #include "testing/gmock/include/gmock/gmock.h" 9 #include "testing/gmock/include/gmock/gmock.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 EXPECT_EQ(STATUS_BREAKPOINT, code1); 250 EXPECT_EQ(STATUS_BREAKPOINT, code1);
251 EXPECT_EQ(STATUS_BREAKPOINT, code2); 251 EXPECT_EQ(STATUS_BREAKPOINT, code2);
252 EXPECT_EQ(STATUS_BREAKPOINT, code3); 252 EXPECT_EQ(STATUS_BREAKPOINT, code3);
253 253
254 // Ensure that none of the CHECKs are colocated. 254 // Ensure that none of the CHECKs are colocated.
255 EXPECT_NE(addr1, addr2); 255 EXPECT_NE(addr1, addr2);
256 EXPECT_NE(addr1, addr3); 256 EXPECT_NE(addr1, addr3);
257 EXPECT_NE(addr2, addr3); 257 EXPECT_NE(addr2, addr3);
258 } 258 }
259 259
260 #elif defined(OS_POSIX) && !defined(OS_NACL) && \ 260 #elif defined(OS_POSIX) && !defined(OS_NACL) && !defined(OS_IOS) && \
261 (defined(ARCH_CPU_X86_FAMILY) || defined(ARCH_CPU_ARM_FAMILY)) 261 (defined(ARCH_CPU_X86_FAMILY) || defined(ARCH_CPU_ARM_FAMILY))
262 262
263 int g_child_crash_pipe; 263 int g_child_crash_pipe;
264 264
265 void CheckCrashTestSighandler(int, siginfo_t* info, void* context_ptr) { 265 void CheckCrashTestSighandler(int, siginfo_t* info, void* context_ptr) {
266 // Conversely to what clearly stated in "man 2 sigaction", some Linux kernels 266 // Conversely to what clearly stated in "man 2 sigaction", some Linux kernels
267 // do NOT populate the |info->si_addr| in the case of a SIGTRAP. Hence we 267 // do NOT populate the |info->si_addr| in the case of a SIGTRAP. Hence we
268 // need the arch-specific boilerplate below, which is inspired by breakpad. 268 // need the arch-specific boilerplate below, which is inspired by breakpad.
269 // At the same time, on OSX, ucontext.h is deprecated but si_addr works fine. 269 // At the same time, on OSX, ucontext.h is deprecated but si_addr works fine.
270 uintptr_t crash_addr = 0; 270 uintptr_t crash_addr = 0;
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 std::wstring wstr = L"Hello World"; 504 std::wstring wstr = L"Hello World";
505 std::ostringstream ostr; 505 std::ostringstream ostr;
506 ostr << wstr; 506 ostr << wstr;
507 EXPECT_EQ("Hello World", ostr.str()); 507 EXPECT_EQ("Hello World", ostr.str());
508 } 508 }
509 } // namespace nested_test 509 } // namespace nested_test
510 510
511 } // namespace 511 } // namespace
512 512
513 } // namespace logging 513 } // namespace logging
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698