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

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: Add gyp 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..ec2661a7eeec2ad7f125f7ffddb3543d777b16d5 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_ = std::move(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 std::string& value) override {
+ value_fill_field_ = base::UTF8ToUTF16(value);
CallDone();
}
- void PreviewFieldWithValue(const mojo::String& value) override {
- value_preview_field_ = value.To<base::string16>();
+ void PreviewFieldWithValue(const std::string& value) override {
+ value_preview_field_ = base::UTF8ToUTF16(value);
CallDone();
}
- void AcceptDataListSuggestion(const mojo::String& value) override {
- value_accept_data_ = value.To<base::string16>();
+ void AcceptDataListSuggestion(const std::string& value) override {
+ value_accept_data_ = base::UTF8ToUTF16(value);
CallDone();
}
- void FillPasswordSuggestion(const mojo::String& username,
- const mojo::String& password) override {}
+ void FillPasswordSuggestion(const std::string& username,
+ const std::string& password) override {}
- void PreviewPasswordSuggestion(const mojo::String& username,
- const mojo::String& password) override {}
+ void PreviewPasswordSuggestion(const std::string& username,
+ const std::string& password) override {}
void ShowInitialPasswordAccountSuggestions(
int32_t key,

Powered by Google App Engine
This is Rietveld 408576698