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

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

Issue 5849001: Move GUID utils to src/chrome/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chrome/common Created 10 years 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 | « chrome/browser/autofill/autofill_profile.cc ('k') | chrome/browser/autofill/credit_card.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/scoped_ptr.h" 6 #include "base/scoped_ptr.h"
7 #include "base/stl_util-inl.h" 7 #include "base/stl_util-inl.h"
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/autofill/autofill_common_test.h" 10 #include "chrome/browser/autofill/autofill_common_test.h"
11 #include "chrome/browser/autofill/autofill_profile.h" 11 #include "chrome/browser/autofill/autofill_profile.h"
12 #include "chrome/browser/guid.h" 12 #include "chrome/common/guid.h"
13 #include "grit/generated_resources.h" 13 #include "grit/generated_resources.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 namespace { 16 namespace {
17 17
18 bool UpdateProfileLabel(AutoFillProfile *profile) { 18 bool UpdateProfileLabel(AutoFillProfile *profile) {
19 std::vector<AutoFillProfile*> profiles; 19 std::vector<AutoFillProfile*> profiles;
20 profiles.push_back(profile); 20 profiles.push_back(profile);
21 return AutoFillProfile::AdjustInferredLabels(&profiles); 21 return AutoFillProfile::AdjustInferredLabels(&profiles);
22 } 22 }
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 // Different values produce non-zero results. 537 // Different values produce non-zero results.
538 autofill_test::SetProfileInfo(&a, "label1", "Jimmy", NULL, NULL, NULL, 538 autofill_test::SetProfileInfo(&a, "label1", "Jimmy", NULL, NULL, NULL,
539 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); 539 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
540 autofill_test::SetProfileInfo(&b, "label1", "Ringo", NULL, NULL, NULL, 540 autofill_test::SetProfileInfo(&b, "label1", "Ringo", NULL, NULL, NULL,
541 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); 541 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
542 EXPECT_GT(0, a.Compare(b)); 542 EXPECT_GT(0, a.Compare(b));
543 EXPECT_LT(0, b.Compare(a)); 543 EXPECT_LT(0, b.Compare(a));
544 } 544 }
545 545
546 } // namespace 546 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_profile.cc ('k') | chrome/browser/autofill/credit_card.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698