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

Side by Side Diff: chrome/browser/cocoa/toolbar_controller_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, 3 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
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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #import "base/scoped_nsobject.h" 7 #import "base/scoped_nsobject.h"
8 #include "chrome/app/chrome_dll_resource.h" 8 #include "chrome/app/chrome_dll_resource.h"
9 #include "chrome/browser/cocoa/browser_test_helper.h" 9 #include "chrome/browser/cocoa/browser_test_helper.h"
10 #import "chrome/browser/cocoa/cocoa_test_helper.h" 10 #import "chrome/browser/cocoa/cocoa_test_helper.h"
11 #import "chrome/browser/cocoa/toolbar_controller.h" 11 #import "chrome/browser/cocoa/toolbar_controller.h"
12 #import "chrome/browser/cocoa/view_resizer_pong.h" 12 #import "chrome/browser/cocoa/view_resizer_pong.h"
13 #include "chrome/common/pref_names.h" 13 #include "chrome/common/pref_names.h"
14 #include "chrome/common/pref_service.h" 14 #include "chrome/common/pref_service.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 #include "testing/platform_test.h"
16 17
17 namespace { 18 namespace {
18 19
19 class ToolbarControllerTest : public testing::Test { 20 class ToolbarControllerTest : public PlatformTest {
20 public: 21 public:
21 22
22 // Indexes that match the ordering returned by the private ToolbarController 23 // Indexes that match the ordering returned by the private ToolbarController
23 // |-toolbarViews| method. 24 // |-toolbarViews| method.
24 enum { 25 enum {
25 kBackIndex, kForwardIndex, kReloadIndex, kHomeIndex, kStarIndex, kGoIndex, 26 kBackIndex, kForwardIndex, kReloadIndex, kHomeIndex, kStarIndex, kGoIndex,
26 kPageIndex, kWrenchIndex, kLocationIndex, 27 kPageIndex, kWrenchIndex, kLocationIndex,
27 }; 28 };
28 29
29 ToolbarControllerTest() { 30 ToolbarControllerTest() {
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 EXPECT_GT(popupFrame.right(), NSMaxX(locationFrame)); 246 EXPECT_GT(popupFrame.right(), NSMaxX(locationFrame));
246 247
247 // Make sure the popup frame is positioned above the bottom of the 248 // Make sure the popup frame is positioned above the bottom of the
248 // location bar. 249 // location bar.
249 EXPECT_GE(popupFrame.bottom(), NSMinY(locationFrame)); 250 EXPECT_GE(popupFrame.bottom(), NSMinY(locationFrame));
250 } 251 }
251 252
252 253
253 254
254 } // namespace 255 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698