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

Side by Side Diff: components/autofill/core/browser/phone_field_unittest.cc

Issue 2463603002: Remove the use of STLDeleteContainerPointers from ScopedVector. (Closed)
Patch Set: reparent Created 4 years, 1 month 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/browser/phone_field.h" 5 #include "components/autofill/core/browser/phone_field.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "base/memory/scoped_vector.h" 13 #include "base/memory/scoped_vector.h"
14 #include "base/stl_util.h"
14 #include "base/strings/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
15 #include "components/autofill/core/browser/autofill_field.h" 16 #include "components/autofill/core/browser/autofill_field.h"
16 #include "components/autofill/core/browser/autofill_scanner.h" 17 #include "components/autofill/core/browser/autofill_scanner.h"
17 #include "components/autofill/core/common/form_field_data.h" 18 #include "components/autofill/core/common/form_field_data.h"
18 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
19 20
20 using base::ASCIIToUTF16; 21 using base::ASCIIToUTF16;
21 22
22 namespace autofill { 23 namespace autofill {
23 24
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 AutofillScanner scanner(list_.get()); 249 AutofillScanner scanner(list_.get());
249 field_ = Parse(&scanner); 250 field_ = Parse(&scanner);
250 ASSERT_NE(nullptr, field_.get()); 251 ASSERT_NE(nullptr, field_.get());
251 field_->AddClassifications(&field_candidates_map_); 252 field_->AddClassifications(&field_candidates_map_);
252 CheckField("country", PHONE_HOME_COUNTRY_CODE); 253 CheckField("country", PHONE_HOME_COUNTRY_CODE);
253 CheckField("phone", PHONE_HOME_CITY_AND_NUMBER); 254 CheckField("phone", PHONE_HOME_CITY_AND_NUMBER);
254 } 255 }
255 } 256 }
256 257
257 } // namespace autofill 258 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/content/renderer/form_autofill_util.cc ('k') | device/bluetooth/bluetooth_discovery_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698