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

Side by Side Diff: components/autofill/core/common/form_field_data_unittest.cc

Issue 2318533002: [Password Generation] Use signatures for form matching (Closed)
Patch Set: Rebase Created 4 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "components/autofill/core/common/form_field_data.h" 5 #include "components/autofill/core/common/form_field_data.h"
6 6
7 #include "base/i18n/rtl.h" 7 #include "base/i18n/rtl.h"
8 #include "base/pickle.h" 8 #include "base/pickle.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "components/autofill/core/common/autofill_util.h"
10 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
11 12
12 namespace autofill { 13 namespace autofill {
13 14
14 namespace { 15 namespace {
15 16
16 void FillCommonFields(FormFieldData* data) { 17 void FillCommonFields(FormFieldData* data) {
17 data->label = base::ASCIIToUTF16("label"); 18 data->label = base::ASCIIToUTF16("label");
18 data->name = base::ASCIIToUTF16("name"); 19 data->name = base::ASCIIToUTF16("name");
19 data->value = base::ASCIIToUTF16("value"); 20 data->value = base::ASCIIToUTF16("value");
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 291
291 base::PickleIterator iter(pickle); 292 base::PickleIterator iter(pickle);
292 FormFieldData actual; 293 FormFieldData actual;
293 EXPECT_FALSE(DeserializeFormFieldData(&iter, &actual)); 294 EXPECT_FALSE(DeserializeFormFieldData(&iter, &actual));
294 295
295 FormFieldData empty; 296 FormFieldData empty;
296 EXPECT_TRUE(actual.SameFieldAs(empty)); 297 EXPECT_TRUE(actual.SameFieldAs(empty));
297 } 298 }
298 299
299 } // namespace autofill 300 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/common/form_field_data.cc ('k') | components/autofill/core/common/password_form_generation_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698