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

Side by Side Diff: base/mac/call_with_eh_frame_unittest.mm

Issue 1466413002: Update gtest to 786564fa4a3c, switch to googlemock in gtest Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/mac/bind_objc_block_unittest.mm ('k') | base/mac/dispatch_source_mach_unittest.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/mac/call_with_eh_frame.h" 5 #include "base/mac/call_with_eh_frame.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 8
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/googletest/include/gtest/gtest.h"
10 10
11 namespace base { 11 namespace base {
12 namespace mac { 12 namespace mac {
13 namespace { 13 namespace {
14 14
15 class CallWithEHFrameTest : public testing::Test { 15 class CallWithEHFrameTest : public testing::Test {
16 protected: 16 protected:
17 void ThrowException() { 17 void ThrowException() {
18 @throw [NSException exceptionWithName:@"TestException" 18 @throw [NSException exceptionWithName:@"TestException"
19 reason:@"Testing exceptions" 19 reason:@"Testing exceptions"
(...skipping 26 matching lines...) Expand all
46 saw_exception = true; 46 saw_exception = true;
47 } 47 }
48 ASSERT_FALSE(saw_exception); 48 ASSERT_FALSE(saw_exception);
49 }; 49 };
50 EXPECT_DEATH(catch_exception_lower(), ""); 50 EXPECT_DEATH(catch_exception_lower(), "");
51 } 51 }
52 52
53 } // namespace 53 } // namespace
54 } // namespace mac 54 } // namespace mac
55 } // namespace base 55 } // namespace base
OLDNEW
« no previous file with comments | « base/mac/bind_objc_block_unittest.mm ('k') | base/mac/dispatch_source_mach_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698