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

Side by Side Diff: chrome/browser/ui/autofill/autofill_popup_controller_browsertest.cc

Issue 12434004: Move remaining Autofill code to //components/autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix long lines Created 7 years, 9 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "chrome/browser/autofill/autofill_manager.h"
8 #include "chrome/browser/autofill/test_autofill_external_delegate.h"
9 #include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h" 7 #include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h"
10 #include "chrome/browser/ui/autofill/autofill_popup_view.h" 8 #include "chrome/browser/ui/autofill/autofill_popup_view.h"
11 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
12 #include "chrome/browser/ui/browser_window.h" 10 #include "chrome/browser/ui/browser_window.h"
13 #include "chrome/browser/ui/tabs/tab_strip_model.h" 11 #include "chrome/browser/ui/tabs/tab_strip_model.h"
14 #include "chrome/test/base/in_process_browser_test.h" 12 #include "chrome/test/base/in_process_browser_test.h"
13 #include "components/autofill/browser/autofill_manager.h"
14 #include "components/autofill/browser/test_autofill_external_delegate.h"
15 #include "content/public/browser/web_contents.h" 15 #include "content/public/browser/web_contents.h"
16 #include "content/public/browser/web_contents_observer.h" 16 #include "content/public/browser/web_contents_observer.h"
17 #include "content/public/test/test_utils.h" 17 #include "content/public/test/test_utils.h"
18 #include "ui/gfx/rect.h" 18 #include "ui/gfx/rect.h"
19 #include "ui/gfx/vector2d.h" 19 #include "ui/gfx/vector2d.h"
20 20
21 namespace { 21 namespace {
22 22
23 class TestAutofillExternalDelegate : public AutofillExternalDelegate { 23 class TestAutofillExternalDelegate : public AutofillExternalDelegate {
24 public: 24 public:
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 EXPECT_FALSE(autofill_external_delegate_->popup_hidden()); 107 EXPECT_FALSE(autofill_external_delegate_->popup_hidden());
108 108
109 // Resize the window, which should cause the popup to hide. 109 // Resize the window, which should cause the popup to hide.
110 gfx::Rect new_bounds = browser()->window()->GetBounds() - gfx::Vector2d(1, 1); 110 gfx::Rect new_bounds = browser()->window()->GetBounds() - gfx::Vector2d(1, 1);
111 browser()->window()->SetBounds(new_bounds); 111 browser()->window()->SetBounds(new_bounds);
112 112
113 autofill_external_delegate_->WaitForPopupHidden(); 113 autofill_external_delegate_->WaitForPopupHidden();
114 EXPECT_TRUE(autofill_external_delegate_->popup_hidden()); 114 EXPECT_TRUE(autofill_external_delegate_->popup_hidden());
115 } 115 }
116 #endif // !defined(OS_MACOSX) && !defined(OS_LINUX) 116 #endif // !defined(OS_MACOSX) && !defined(OS_LINUX)
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_types.h ('k') | chrome/browser/ui/autofill/autofill_popup_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698