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

Side by Side Diff: chrome/browser/ui/cocoa/autofill/autofill_section_view_unittest.mm

Issue 24579003: Clean up remaining unused globals (on mac). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: staticmedia Created 7 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/ui/cocoa/autofill/autofill_section_view.h" 5 #import "chrome/browser/ui/cocoa/autofill/autofill_section_view.h"
6 6
7 #include "base/mac/scoped_nsobject.h" 7 #include "base/mac/scoped_nsobject.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "testing/gtest_mac.h" 10 #include "testing/gtest_mac.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 TEST_F(AutofillSectionViewTest, MouseClicksAreForwarded) { 154 TEST_F(AutofillSectionViewTest, MouseClicksAreForwarded) {
155 base::scoped_nsobject<AutofillClickTestDelegate> delegate( 155 base::scoped_nsobject<AutofillClickTestDelegate> delegate(
156 [[AutofillClickTestDelegate alloc] init]); 156 [[AutofillClickTestDelegate alloc] init]);
157 [view_ setClickTarget:delegate]; 157 [view_ setClickTarget:delegate];
158 158
159 NSEvent* down_event = 159 NSEvent* down_event =
160 cocoa_test_event_utils::LeftMouseDownAtPoint(NSMakePoint(5, 5)); 160 cocoa_test_event_utils::LeftMouseDownAtPoint(NSMakePoint(5, 5));
161 ASSERT_FALSE([delegate didFire]); 161 ASSERT_FALSE([delegate didFire]);
162 [test_window() sendEvent:down_event]; 162 [test_window() sendEvent:down_event];
163 EXPECT_TRUE([delegate didFire]); 163 EXPECT_TRUE([delegate didFire]);
164 } 164 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698