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

Side by Side Diff: chrome/browser/autofill/autofill_regexes.cc

Issue 11344028: [Autofill] Add a unit test for the autofill_regexes code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ...add the test file Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_regexes_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/autofill/autofill_regexes.h" 5 #include "chrome/browser/autofill/autofill_regexes.h"
6 6
7 #include <map> 7 #include <map>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 AutofillRegexes::GetInstance()->GetMatcher(pattern); 73 AutofillRegexes::GetInstance()->GetMatcher(pattern);
74 icu::UnicodeString icu_input(input.data(), input.length()); 74 icu::UnicodeString icu_input(input.data(), input.length());
75 matcher->reset(icu_input); 75 matcher->reset(icu_input);
76 76
77 UErrorCode status = U_ZERO_ERROR; 77 UErrorCode status = U_ZERO_ERROR;
78 UBool match = matcher->find(0, status); 78 UBool match = matcher->find(0, status);
79 DCHECK(U_SUCCESS(status)); 79 DCHECK(U_SUCCESS(status));
80 return !!match; 80 return !!match;
81 } 81 }
82 82
83 } // namespace autofill 83 } // namespace autofill
Albert Bodenhamer 2012/10/30 20:28:41 Other than whitespace changes I'm not seeing anyth
Ilya Sherman 2012/10/30 20:34:10 It's just a whitespace change in this file, yes.
84
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autofill/autofill_regexes_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698