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

Side by Side Diff: base/test/test_suite.h

Issue 558008: Use the USE_NSS macro to help porting to FreeBSD, OpenBSD, etc.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | build/build_config.h » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef BASE_TEST_TEST_SUITE_H_ 5 #ifndef BASE_TEST_TEST_SUITE_H_
6 #define BASE_TEST_TEST_SUITE_H_ 6 #define BASE_TEST_TEST_SUITE_H_
7 7
8 // Defines a basic test suite framework for running gtest based tests. You can 8 // Defines a basic test suite framework for running gtest based tests. You can
9 // instantiate this class in your main function and call its Run method to run 9 // instantiate this class in your main function and call its Run method to run
10 // any gtest based tests that are linked into your executable. 10 // any gtest based tests that are linked into your executable.
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 #if !defined(PURIFY) 205 #if !defined(PURIFY)
206 // When the code in this file moved around, bug 6436 resurfaced. 206 // When the code in this file moved around, bug 6436 resurfaced.
207 // As a hack workaround, just #ifdef out this code for Purify builds. 207 // As a hack workaround, just #ifdef out this code for Purify builds.
208 logging::SetLogAssertHandler(UnitTestAssertHandler); 208 logging::SetLogAssertHandler(UnitTestAssertHandler);
209 #endif // !defined(PURIFY) 209 #endif // !defined(PURIFY)
210 } 210 }
211 #endif // defined(OS_WIN) 211 #endif // defined(OS_WIN)
212 212
213 icu_util::Initialize(); 213 icu_util::Initialize();
214 214
215 #if defined(OS_POSIX) && !defined(OS_MACOSX) 215 #if defined(USE_NSS)
216 // Trying to repeatedly initialize and cleanup NSS and NSPR may result in 216 // Trying to repeatedly initialize and cleanup NSS and NSPR may result in
217 // a deadlock. Such repeated initialization will happen when using test 217 // a deadlock. Such repeated initialization will happen when using test
218 // isolation. Prevent problems by initializing NSS here, so that the cleanup 218 // isolation. Prevent problems by initializing NSS here, so that the cleanup
219 // will be done only on process exit. 219 // will be done only on process exit.
220 base::EnsureNSSInit(); 220 base::EnsureNSSInit();
221 #endif // defined(OS_POSIX) && !defined(OS_MACOSX) 221 #endif // defined(USE_NSS)
222 } 222 }
223 223
224 virtual void Shutdown() { 224 virtual void Shutdown() {
225 } 225 }
226 226
227 // Make sure that we setup an AtExitManager so Singleton objects will be 227 // Make sure that we setup an AtExitManager so Singleton objects will be
228 // destroyed. 228 // destroyed.
229 base::AtExitManager at_exit_manager_; 229 base::AtExitManager at_exit_manager_;
230 }; 230 };
231 231
232 #endif // BASE_TEST_TEST_SUITE_H_ 232 #endif // BASE_TEST_TEST_SUITE_H_
OLDNEW
« no previous file with comments | « no previous file | build/build_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698