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

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

Issue 16879006: In components/autofill, move common/ to core/common/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix conflict 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <string.h> 5 #include <string.h>
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/test/base/chrome_render_view_test.h" 10 #include "chrome/test/base/chrome_render_view_test.h"
11 #include "components/autofill/common/autofill_messages.h"
12 #include "components/autofill/content/renderer/password_generation_manager.h" 11 #include "components/autofill/content/renderer/password_generation_manager.h"
12 #include "components/autofill/core/common/autofill_messages.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 #include "third_party/WebKit/public/platform/WebString.h"
14 #include "third_party/WebKit/public/web/WebDocument.h" 15 #include "third_party/WebKit/public/web/WebDocument.h"
15 #include "third_party/WebKit/public/web/WebWidget.h" 16 #include "third_party/WebKit/public/web/WebWidget.h"
16 #include "third_party/WebKit/public/platform/WebString.h"
17 17
18 using WebKit::WebDocument; 18 using WebKit::WebDocument;
19 using WebKit::WebElement; 19 using WebKit::WebElement;
20 using WebKit::WebInputElement; 20 using WebKit::WebInputElement;
21 using WebKit::WebNode; 21 using WebKit::WebNode;
22 using WebKit::WebString; 22 using WebKit::WebString;
23 23
24 namespace autofill { 24 namespace autofill {
25 25
26 class TestPasswordGenerationManager : public PasswordGenerationManager { 26 class TestPasswordGenerationManager : public PasswordGenerationManager {
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 ASSERT_FALSE(element.isNull()); 276 ASSERT_FALSE(element.isNull());
277 first_password_element = element.to<WebInputElement>(); 277 first_password_element = element.to<WebInputElement>();
278 EXPECT_TRUE(DecorationIsVisible(&first_password_element)); 278 EXPECT_TRUE(DecorationIsVisible(&first_password_element));
279 SimulateClickOnDecoration(&first_password_element); 279 SimulateClickOnDecoration(&first_password_element);
280 EXPECT_EQ(2u, generation_manager_->messages().size()); 280 EXPECT_EQ(2u, generation_manager_->messages().size());
281 EXPECT_EQ(AutofillHostMsg_ShowPasswordGenerationPopup::ID, 281 EXPECT_EQ(AutofillHostMsg_ShowPasswordGenerationPopup::ID,
282 generation_manager_->messages()[1]->type()); 282 generation_manager_->messages()[1]->type());
283 } 283 }
284 284
285 } // namespace autofill 285 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/renderer/autofill/password_autofill_agent_browsertest.cc ('k') | components/autofill.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698