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

Side by Side Diff: base/test/test_support_ios.mm

Issue 2561963002: base: Remove the string logging from CHECK(). (Closed)
Patch Set: checkstring: rebase Created 4 years 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #import <UIKit/UIKit.h> 5 #import <UIKit/UIKit.h>
6 6
7 #include "base/debug/debugger.h" 7 #include "base/debug/debugger.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/mac/scoped_nsautorelease_pool.h" 9 #include "base/mac/scoped_nsautorelease_pool.h"
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 #endif // TARGET_IPHONE_SIMULATOR 104 #endif // TARGET_IPHONE_SIMULATOR
105 return NO; 105 return NO;
106 } 106 }
107 107
108 // Returns the path to the directory to store gtest output files. 108 // Returns the path to the directory to store gtest output files.
109 - (NSString*)outputPath { 109 - (NSString*)outputPath {
110 NSArray* searchPath = 110 NSArray* searchPath =
111 NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, 111 NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,
112 NSUserDomainMask, 112 NSUserDomainMask,
113 YES); 113 YES);
114 CHECK([searchPath count] > 0) << "Failed to get the Documents folder"; 114 // Failed to get the Documents folder
115 CHECK([searchPath count] > 0);
115 return [searchPath objectAtIndex:0]; 116 return [searchPath objectAtIndex:0];
116 } 117 }
117 118
118 // Returns the path to file that stdout is redirected to. 119 // Returns the path to file that stdout is redirected to.
119 - (NSString*)stdoutPath { 120 - (NSString*)stdoutPath {
120 return [[self outputPath] stringByAppendingPathComponent:@"stdout.log"]; 121 return [[self outputPath] stringByAppendingPathComponent:@"stdout.log"];
121 } 122 }
122 123
123 // Returns the path to file that stderr is redirected to. 124 // Returns the path to file that stderr is redirected to.
124 - (NSString*)stderrPath { 125 - (NSString*)stderrPath {
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 if (!ran_hook) { 212 if (!ran_hook) {
212 ran_hook = true; 213 ran_hook = true;
213 mac::ScopedNSAutoreleasePool pool; 214 mac::ScopedNSAutoreleasePool pool;
214 int exit_status = UIApplicationMain(g_argc, g_argv, nil, 215 int exit_status = UIApplicationMain(g_argc, g_argv, nil,
215 @"ChromeUnitTestDelegate"); 216 @"ChromeUnitTestDelegate");
216 exit(exit_status); 217 exit(exit_status);
217 } 218 }
218 } 219 }
219 220
220 } // namespace base 221 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698