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

Unified Diff: chrome/browser/cocoa/location_bar_view_mac_unittest.mm

Issue 178037: Make all of our unit tests be PlatformTests to get an autorelease pool.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/cocoa/location_bar_view_mac_unittest.mm
===================================================================
--- chrome/browser/cocoa/location_bar_view_mac_unittest.mm (revision 24882)
+++ chrome/browser/cocoa/location_bar_view_mac_unittest.mm (working copy)
@@ -11,6 +11,7 @@
#include "chrome/browser/cocoa/location_bar_view_mac.h"
#import "chrome/browser/cocoa/cocoa_test_helper.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "testing/platform_test.h"
// TODO(shess): Figure out how to unittest this. The code below was
// testing the hacked-up behavior so you didn't have to be pedantic
@@ -19,7 +20,7 @@
// http://code.google.com/p/chromium/issues/detail?id=9977
#if 0
-class LocationBarViewMacTest : public testing::Test {
+class LocationBarViewMacTest : public PlatformTest {
public:
LocationBarViewMacTest()
: field_([[NSTextField alloc] init]),
@@ -58,7 +59,7 @@
namespace {
-class LocationBarViewMacTest : public testing::Test {
+class LocationBarViewMacTest : public PlatformTest {
public:
LocationBarViewMacTest() {
// Make sure this is wide enough to play games with the cell

Powered by Google App Engine
This is Rietveld 408576698