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

Side by Side Diff: testing/platform_test.h

Issue 13052: Cleanup: move base/platform_test.h -> testing/ (Closed)
Patch Set: fix mark's comment Created 12 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
« no previous file with comments | « testing/gtest.xcodeproj/project.pbxproj ('k') | testing/platform_test_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef TESTING_PLATFORM_TEST_H_
6 #define TESTING_PLATFORM_TEST_H_
7
8 #include <gtest/gtest.h>
9
10 #if defined(GTEST_OS_MAC)
11 #ifdef __OBJC__
12 @class NSAutoreleasePool;
13 #else
14 class NSAutoreleasePool;
15 #endif
16
17 // The purpose of this class us to provide a hook for platform-specific
18 // SetUp and TearDown across unit tests. For example, on the Mac, it
19 // creates and releases an outer AutoreleasePool for each test. For now, it's
20 // only implemented on the Mac. To enable this for another platform, just
21 // adjust the #ifdefs and add a platform_test_<platform>.cc implementation file.
22 class PlatformTest : public testing::Test {
23 protected:
24 virtual void SetUp();
25 virtual void TearDown();
26
27 private:
28 NSAutoreleasePool* pool_;
29 };
30 #else
31 typedef testing::Test PlatformTest;
32 #endif // GTEST_OS_MAC
33
34 #endif // TESTING_PLATFORM_TEST_H_
35
36
OLDNEW
« no previous file with comments | « testing/gtest.xcodeproj/project.pbxproj ('k') | testing/platform_test_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698