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

Side by Side Diff: chrome/renderer/autofill/page_click_tracker_browsertest.cc

Issue 15949025: In components/autofill, move renderer/ to content/renderer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Response to reviews Created 7 years, 6 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "components/autofill/renderer/page_click_listener.h" 6 #include "components/autofill/content/renderer/page_click_listener.h"
7 #include "components/autofill/renderer/page_click_tracker.h" 7 #include "components/autofill/content/renderer/page_click_tracker.h"
8 #include "content/public/renderer/render_view.h" 8 #include "content/public/renderer/render_view.h"
9 #include "content/public/test/render_view_test.h" 9 #include "content/public/test/render_view_test.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "third_party/WebKit/public/platform/WebSize.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
14 #include "third_party/WebKit/public/platform/WebSize.h"
15 #include "ui/base/keycodes/keyboard_codes.h" 15 #include "ui/base/keycodes/keyboard_codes.h"
16 16
17 namespace autofill { 17 namespace autofill {
18 18
19 class TestPageClickListener : public PageClickListener { 19 class TestPageClickListener : public PageClickListener {
20 public: 20 public:
21 TestPageClickListener() 21 TestPageClickListener()
22 : input_element_clicked_called_(false), 22 : input_element_clicked_called_(false),
23 input_element_lost_focus_called_(false), 23 input_element_lost_focus_called_(false),
24 was_focused_(false), 24 was_focused_(false),
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 EXPECT_TRUE(test_listener_.input_element_lost_focus_called_); 148 EXPECT_TRUE(test_listener_.input_element_lost_focus_called_);
149 test_listener_.ClearResults(); 149 test_listener_.ClearResults();
150 150
151 // Click on a text field while the button has focus and ensure no lost focus 151 // Click on a text field while the button has focus and ensure no lost focus
152 // notification is sent. 152 // notification is sent.
153 EXPECT_TRUE(SimulateElementClick("text_1")); 153 EXPECT_TRUE(SimulateElementClick("text_1"));
154 EXPECT_FALSE(test_listener_.input_element_lost_focus_called_); 154 EXPECT_FALSE(test_listener_.input_element_lost_focus_called_);
155 } 155 }
156 156
157 } // namespace autofill 157 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/renderer/autofill/form_autofill_browsertest.cc ('k') | chrome/renderer/autofill/password_autofill_agent_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698