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

Unified Diff: components/autofill/core/browser/autofill_profile_unittest.cc

Issue 2746543003: [Autofill] Remove dead code in autofill_profile_unittest (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/autofill_profile_unittest.cc
diff --git a/components/autofill/core/browser/autofill_profile_unittest.cc b/components/autofill/core/browser/autofill_profile_unittest.cc
index c54f2ae61c4e16a931c93d8b9aa1817e2a8054b6..ee55bc0857b3be1dcbfa024e85c07be5f9052229 100644
--- a/components/autofill/core/browser/autofill_profile_unittest.cc
+++ b/components/autofill/core/browser/autofill_profile_unittest.cc
@@ -39,39 +39,6 @@ base::string16 GetLabel(AutofillProfile* profile) {
return labels[0];
}
-// Holds the autofill profile |first|, |middle| and |last| names.
-struct NameParts {
- NameParts(const std::string& first,
- const std::string& middle,
- const std::string& last)
- : first(first), middle(middle), last(last) {}
-
- std::string first;
- std::string middle;
- std::string last;
-};
-
-// Test case to be executed to validate OverwriteOrAppendNames.
-struct TestCase {
- TestCase(const NameParts& starting_name,
- const NameParts& additional_name,
- const NameParts& expected_result)
- : starting_names(std::vector<NameParts>(1, starting_name)),
- additional_names(std::vector<NameParts>(1, additional_name)),
- expected_result(std::vector<NameParts>(1, expected_result)) {}
-
- TestCase(const std::vector<NameParts>& starting_names,
- const std::vector<NameParts>& additional_names,
- const std::vector<NameParts>& expected_result)
- : starting_names(starting_names),
- additional_names(additional_names),
- expected_result(expected_result) {}
-
- std::vector<NameParts> starting_names;
- std::vector<NameParts> additional_names;
- std::vector<NameParts> expected_result;
-};
-
void SetupTestProfile(AutofillProfile& profile) {
profile.set_guid(base::GenerateGUID());
profile.set_origin(kSettingsOrigin);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698