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

Unified Diff: sync/util/data_encryption_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 | « sync/util/data_encryption_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/util/data_encryption_win_unittest.cc
diff --git a/sync/util/data_encryption_win_unittest.cc b/sync/util/data_encryption_win_unittest.cc
index 4fa525046057f1b26b19ae3ae34a02b33cab1b42..0510554654fbbf49e11bbf32c838268b26f8e156 100644
--- a/sync/util/data_encryption_win_unittest.cc
+++ b/sync/util/data_encryption_win_unittest.cc
@@ -4,28 +4,24 @@
#include "sync/util/data_encryption_win.h"
-#include <string>
-#include <vector>
-
#include "testing/gtest/include/gtest/gtest.h"
-using std::string;
-using std::vector;
-
+namespace syncer {
namespace {
TEST(SyncDataEncryption, TestEncryptDecryptOfSampleString) {
- vector<uint8> example(EncryptData("example"));
+ std::vector<uint8> example(EncryptData("example"));
ASSERT_FALSE(example.empty());
- string result;
+ std::string result;
ASSERT_TRUE(DecryptData(example, &result));
ASSERT_TRUE(result == "example");
}
TEST(SyncDataEncryption, TestDecryptFailure) {
- vector<uint8> example(0, 0);
- string result;
+ std::vector<uint8> example(0, 0);
+ std::string result;
ASSERT_FALSE(DecryptData(example, &result));
}
} // namespace
+} // namespace syncer
« no previous file with comments | « sync/util/data_encryption_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698