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

Side by Side Diff: chrome/browser/cocoa/autocomplete_text_field_editor_unittest.mm

Issue 600133: Mac: Content blocked icons. (Closed)
Patch Set: comments andybons Created 10 years, 10 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
OLDNEW
1 // Copyright (c) 2009 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 "chrome/browser/cocoa/autocomplete_text_field_editor.h" 5 #import "chrome/browser/cocoa/autocomplete_text_field_editor.h"
6 6
7 #include "base/scoped_nsobject.h" 7 #include "base/scoped_nsobject.h"
8 #include "base/scoped_ptr.h" 8 #include "base/scoped_ptr.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "chrome/app/chrome_dll_resource.h" // IDC_* 10 #include "chrome/app/chrome_dll_resource.h" // IDC_*
11 #import "chrome/browser/cocoa/autocomplete_text_field_unittest_helper.h" 11 #import "chrome/browser/cocoa/autocomplete_text_field_unittest_helper.h"
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 NSArray* items = [menu itemArray]; 191 NSArray* items = [menu itemArray];
192 ASSERT_EQ([items count], 3U); 192 ASSERT_EQ([items count], 3U);
193 // TODO(shess): Check the titles, too? 193 // TODO(shess): Check the titles, too?
194 NSUInteger i = 0; // Use an index to make future changes easier. 194 NSUInteger i = 0; // Use an index to make future changes easier.
195 EXPECT_EQ([[items objectAtIndex:i++] action], @selector(cut:)); 195 EXPECT_EQ([[items objectAtIndex:i++] action], @selector(cut:));
196 EXPECT_EQ([[items objectAtIndex:i++] action], @selector(copy:)); 196 EXPECT_EQ([[items objectAtIndex:i++] action], @selector(copy:));
197 EXPECT_EQ([[items objectAtIndex:i++] action], @selector(paste:)); 197 EXPECT_EQ([[items objectAtIndex:i++] action], @selector(paste:));
198 } 198 }
199 199
200 } // namespace 200 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/autocomplete_text_field_editor.mm ('k') | chrome/browser/cocoa/autocomplete_text_field_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698