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

Unified Diff: chrome/test/base/chrome_render_view_test.cc

Issue 151503006: Re-land r248110 with ASAN error fixed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Punctuation Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/base/chrome_render_view_test.h ('k') | components/autofill/content/common/autofill_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/chrome_render_view_test.cc
diff --git a/chrome/test/base/chrome_render_view_test.cc b/chrome/test/base/chrome_render_view_test.cc
index 47e06f9793344745509e44e754a8cee4d1a12434..e92236fff3787c14f1371673d0d543f44c4cada6 100644
--- a/chrome/test/base/chrome_render_view_test.cc
+++ b/chrome/test/base/chrome_render_view_test.cc
@@ -14,6 +14,7 @@
#include "components/autofill/content/renderer/autofill_agent.h"
#include "components/autofill/content/renderer/password_autofill_agent.h"
#include "components/autofill/content/renderer/test_password_autofill_agent.h"
+#include "components/autofill/content/renderer/test_password_generation_agent.h"
#include "content/public/browser/native_web_keyboard_event.h"
#include "content/public/common/renderer_preferences.h"
#include "content/public/renderer/render_view.h"
@@ -40,6 +41,7 @@ using blink::WebString;
using blink::WebURLRequest;
using autofill::AutofillAgent;
using autofill::PasswordAutofillAgent;
+using autofill::PasswordGenerationAgent;
ChromeRenderViewTest::ChromeRenderViewTest() : extension_dispatcher_(NULL) {
}
@@ -60,11 +62,13 @@ void ChromeRenderViewTest::SetUp() {
content::RenderViewTest::SetUp();
- // RenderView doesn't expose its PasswordAutofillAgent or AutofillAgent
- // objects, because it has no need to store them directly (they're stored as
- // RenderViewObserver*). So just create another set.
+ // RenderView doesn't expose its Agent objects, because it has no need to
+ // store them directly (they're stored as RenderViewObserver*). So just
+ // create another set.
password_autofill_ = new autofill::TestPasswordAutofillAgent(view_);
- autofill_agent_ = new AutofillAgent(view_, password_autofill_);
+ password_generation_ = new autofill::TestPasswordGenerationAgent(view_);
+ autofill_agent_ =
+ new AutofillAgent(view_, password_autofill_, password_generation_);
}
void ChromeRenderViewTest::TearDown() {
« no previous file with comments | « chrome/test/base/chrome_render_view_test.h ('k') | components/autofill/content/common/autofill_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698