OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 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 | 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 "platform_test.h" | 5 #include "platform_test.h" |
6 | 6 |
7 #import <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> |
8 | 8 |
| 9 #include "coverage_util_ios.h" |
| 10 |
9 PlatformTest::PlatformTest() | 11 PlatformTest::PlatformTest() |
10 : pool_([[NSAutoreleasePool alloc] init]) { | 12 : pool_([[NSAutoreleasePool alloc] init]) { |
11 } | 13 } |
12 | 14 |
13 PlatformTest::~PlatformTest() { | 15 PlatformTest::~PlatformTest() { |
14 [pool_ release]; | 16 [pool_ release]; |
| 17 coverage_util::FlushCoverageDataIfNecessary(); |
15 } | 18 } |
OLD | NEW |