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

Unified Diff: chrome/browser/autofill/autofill_ie_toolbar_import_win_unittest.cc

Issue 11421047: sync: Move data_encryption_win.h into syncer namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unittests 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/autofill/autofill_ie_toolbar_import_win.cc ('k') | sync/util/data_encryption_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_ie_toolbar_import_win_unittest.cc
diff --git a/chrome/browser/autofill/autofill_ie_toolbar_import_win_unittest.cc b/chrome/browser/autofill/autofill_ie_toolbar_import_win_unittest.cc
index 26485ae1f79fa05e2cf81c3d2e8d023f67e7f537..e5c5b98a4e0fcc650bdacba72da00398cacb9728 100644
--- a/chrome/browser/autofill/autofill_ie_toolbar_import_win_unittest.cc
+++ b/chrome/browser/autofill/autofill_ie_toolbar_import_win_unittest.cc
@@ -83,12 +83,12 @@ ValueDescription protected_password = {
};
void EncryptAndWrite(RegKey* key, const ValueDescription* value) {
- string data;
+ std::string data;
size_t data_size = (lstrlen(value->value) + 1) * sizeof(wchar_t);
data.resize(data_size);
memcpy(&data[0], value->value, data_size);
- std::vector<uint8> encrypted_data = EncryptData(data);
+ std::vector<uint8> encrypted_data = syncer::EncryptData(data);
EXPECT_EQ(ERROR_SUCCESS, key->WriteValue(value->value_name,
&encrypted_data[0], encrypted_data.size(), REG_BINARY));
}
« no previous file with comments | « chrome/browser/autofill/autofill_ie_toolbar_import_win.cc ('k') | sync/util/data_encryption_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698