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

Side by Side Diff: chrome/browser/cocoa/location_bar/autocomplete_text_field_cell_unittest.mm

Issue 3050002: [Mac] fix autocomplete_text_field_cell_unittest.mm (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: Oops. Back out dev branch! Created 10 years, 5 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
« no previous file with comments | « no previous file | no next file » | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "app/resource_bundle.h" 7 #include "app/resource_bundle.h"
8 #include "base/scoped_nsobject.h" 8 #include "base/scoped_nsobject.h"
9 #import "chrome/browser/cocoa/cocoa_test_helper.h" 9 #import "chrome/browser/cocoa/cocoa_test_helper.h"
10 #import "chrome/browser/cocoa/location_bar/autocomplete_text_field.h"
10 #import "chrome/browser/cocoa/location_bar/autocomplete_text_field_cell.h" 11 #import "chrome/browser/cocoa/location_bar/autocomplete_text_field_cell.h"
11 #import "chrome/browser/cocoa/location_bar/ev_bubble_decoration.h" 12 #import "chrome/browser/cocoa/location_bar/ev_bubble_decoration.h"
12 #import "chrome/browser/cocoa/location_bar/keyword_hint_decoration.h" 13 #import "chrome/browser/cocoa/location_bar/keyword_hint_decoration.h"
13 #import "chrome/browser/cocoa/location_bar/location_bar_decoration.h" 14 #import "chrome/browser/cocoa/location_bar/location_bar_decoration.h"
14 #import "chrome/browser/cocoa/location_bar/location_icon_decoration.h" 15 #import "chrome/browser/cocoa/location_bar/location_icon_decoration.h"
15 #import "chrome/browser/cocoa/location_bar/selected_keyword_decoration.h" 16 #import "chrome/browser/cocoa/location_bar/selected_keyword_decoration.h"
16 #import "chrome/browser/cocoa/location_bar/star_decoration.h" 17 #import "chrome/browser/cocoa/location_bar/star_decoration.h"
17 #include "grit/theme_resources.h" 18 #include "grit/theme_resources.h"
18 #include "testing/gmock/include/gmock/gmock.h" 19 #include "testing/gmock/include/gmock/gmock.h"
19 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 // |controlView| gets the tooltip for the left decoration. 291 // |controlView| gets the tooltip for the left decoration.
291 id controlView = [OCMockObject mockForClass:[AutocompleteTextField class]]; 292 id controlView = [OCMockObject mockForClass:[AutocompleteTextField class]];
292 [[controlView expect] addToolTip:tooltip forRect:leftDecorationRect]; 293 [[controlView expect] addToolTip:tooltip forRect:leftDecorationRect];
293 294
294 [cell updateToolTipsInRect:bounds ofView:controlView]; 295 [cell updateToolTipsInRect:bounds ofView:controlView];
295 296
296 [controlView verify]; 297 [controlView verify];
297 } 298 }
298 299
299 } // namespace 300 } // namespace
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698