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

Unified Diff: chrome/test/live_sync/live_sessions_sync_test.h

Issue 6465005: [Sync] Initial support for encrypting any datatype (no UI hookup yet). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Self review Created 9 years, 10 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
Index: chrome/test/live_sync/live_sessions_sync_test.h
diff --git a/chrome/test/live_sync/live_sessions_sync_test.h b/chrome/test/live_sync/live_sessions_sync_test.h
index 09939bf58fd92fb74242515a488e585bf3017daa..3a9e586ae95a90d122edae2dc0972e43d7b52d7e 100644
--- a/chrome/test/live_sync/live_sessions_sync_test.h
+++ b/chrome/test/live_sync/live_sessions_sync_test.h
@@ -190,6 +190,16 @@ class LiveSessionsSyncTest : public LiveSyncTest {
return true;
}
+ // Encrypt sessions datatype.
+ bool EnableEncryption(int index) {
+ return GetClient(index)->EnableEncryptionForType(syncable::SESSIONS);
+ }
+
+ // Check if Sessions are encrypted.
+ bool IsEncrypted(int index) {
+ return GetClient(index)->IsTypeEncrypted(syncable::SESSIONS);
+ }
+
// Open a single tab and return the TabContents. TabContents must be checked
// to ensure the tab opened successsfully.
TabContents* OpenTab(int index, GURL url) WARN_UNUSED_RESULT {
@@ -244,7 +254,7 @@ class LiveSessionsSyncTest : public LiveSyncTest {
std::vector<const ForeignSession*> sessions;
if (!GetProfile(index)->GetProfileSyncService()->
GetSessionModelAssociator()->GetAllForeignSessions(&sessions))
- return 0;
+ return 0;
return sessions.size();
}

Powered by Google App Engine
This is Rietveld 408576698