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

Unified Diff: components/autofill/content/browser/content_autofill_driver_unittest.cc

Issue 2180093002: [Autofill] Switch on use_new_wrapper_types mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nit Created 4 years, 5 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
Index: components/autofill/content/browser/content_autofill_driver_unittest.cc
diff --git a/components/autofill/content/browser/content_autofill_driver_unittest.cc b/components/autofill/content/browser/content_autofill_driver_unittest.cc
index 90fb9df13fb233d39e859e8fd242cc774bcf16e4..6aee766269644ba2394fe4ac2c586a82d801835a 100644
--- a/components/autofill/content/browser/content_autofill_driver_unittest.cc
+++ b/components/autofill/content/browser/content_autofill_driver_unittest.cc
@@ -28,7 +28,6 @@
#include "content/public/common/frame_navigate_params.h"
#include "content/public/test/mock_render_process_host.h"
#include "content/public/test/test_renderer_host.h"
-#include "mojo/common/common_type_converters.h"
#include "mojo/public/cpp/bindings/binding_set.h"
#include "services/shell/public/cpp/interface_provider.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -162,8 +161,8 @@ class FakeAutofillAgent : public mojom::AutofillAgent {
}
void FieldTypePredictionsAvailable(
- mojo::Array<FormDataPredictions> forms) override {
- predictions_ = forms.PassStorage();
+ const std::vector<FormDataPredictions>& forms) override {
+ predictions_ = forms;
CallDone();
}
@@ -177,26 +176,26 @@ class FakeAutofillAgent : public mojom::AutofillAgent {
CallDone();
}
- void FillFieldWithValue(const mojo::String& value) override {
- value_fill_field_ = value.To<base::string16>();
+ void FillFieldWithValue(const base::string16& value) override {
+ value_fill_field_ = value;
CallDone();
}
- void PreviewFieldWithValue(const mojo::String& value) override {
- value_preview_field_ = value.To<base::string16>();
+ void PreviewFieldWithValue(const base::string16& value) override {
+ value_preview_field_ = value;
CallDone();
}
- void AcceptDataListSuggestion(const mojo::String& value) override {
- value_accept_data_ = value.To<base::string16>();
+ void AcceptDataListSuggestion(const base::string16& value) override {
+ value_accept_data_ = value;
CallDone();
}
- void FillPasswordSuggestion(const mojo::String& username,
- const mojo::String& password) override {}
+ void FillPasswordSuggestion(const base::string16& username,
+ const base::string16& password) override {}
- void PreviewPasswordSuggestion(const mojo::String& username,
- const mojo::String& password) override {}
+ void PreviewPasswordSuggestion(const base::string16& username,
+ const base::string16& password) override {}
void ShowInitialPasswordAccountSuggestions(
int32_t key,
« no previous file with comments | « components/autofill/content/browser/content_autofill_driver.cc ('k') | components/autofill/content/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698