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

Side by Side Diff: trunk/src/chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller_unittest.mm

Issue 116973002: Revert 241085 "[rAc] [OSX] Set tooltip bubble arrow's anchor poi..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years 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
« no previous file with comments | « trunk/src/chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.mm ('k') | 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 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_tooltip_controller.h" 5 #import "chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.h"
6 6
7 #include "base/mac/scoped_nsobject.h" 7 #include "base/mac/scoped_nsobject.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #import "ui/base/test/ui_cocoa_test_helper.h" 9 #import "ui/base/test/ui_cocoa_test_helper.h"
10 10
11 namespace { 11 namespace {
12 12
13 class AutofillTooltipControllerTest: public ui::CocoaTest { 13 class AutofillTooltipControllerTest: public ui::CocoaTest {
14 public: 14 public:
15 virtual void SetUp() OVERRIDE { 15 virtual void SetUp() OVERRIDE {
16 CocoaTest::SetUp(); 16 CocoaTest::SetUp();
17 controller_.reset([[AutofillTooltipController alloc] 17 controller_.reset([[AutofillTooltipController alloc] init]);
18 initWithArrowLocation:info_bubble::kTopCenter]);
19 [[test_window() contentView] addSubview:[controller_ view]]; 18 [[test_window() contentView] addSubview:[controller_ view]];
20 } 19 }
21 20
22 protected: 21 protected:
23 base::scoped_nsobject<AutofillTooltipController> controller_; 22 base::scoped_nsobject<AutofillTooltipController> controller_;
24 }; 23 };
25 24
26 } // namespace 25 } // namespace
27 26
28 TEST_VIEW(AutofillTooltipControllerTest, [controller_ view]) 27 TEST_VIEW(AutofillTooltipControllerTest, [controller_ view])
OLDNEW
« no previous file with comments | « trunk/src/chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698