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

Side by Side Diff: sync/internal_api/sync_encryption_handler_impl_unittest.cc

Issue 11958029: [Sync] Add support for proxy types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix more tests Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "sync/internal_api/sync_encryption_handler_impl.h" 5 #include "sync/internal_api/sync_encryption_handler_impl.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/json/json_string_value_serializer.h" 10 #include "base/json/json_string_value_serializer.h"
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 } 364 }
365 EXPECT_TRUE(encrypted_types.Equals( 365 EXPECT_TRUE(encrypted_types.Equals(
366 encryption_handler()->GetEncryptedTypesUnsafe())); 366 encryption_handler()->GetEncryptedTypesUnsafe()));
367 EXPECT_TRUE(encrypted_types.Equals( 367 EXPECT_TRUE(encrypted_types.Equals(
368 handler2.GetEncryptedTypesUnsafe())); 368 handler2.GetEncryptedTypesUnsafe()));
369 369
370 Mock::VerifyAndClearExpectations(observer()); 370 Mock::VerifyAndClearExpectations(observer());
371 Mock::VerifyAndClearExpectations(&observer2); 371 Mock::VerifyAndClearExpectations(&observer2);
372 372
373 ModelTypeSet encrypted_user_types = EncryptableUserTypes(); 373 ModelTypeSet encrypted_user_types = EncryptableUserTypes();
374 // We never encrypt history delete directives.
375 encrypted_user_types.Remove(HISTORY_DELETE_DIRECTIVES);
tim (not reviewing) 2013/01/18 20:56:33 Where did this come from?
Nicolas Zea 2013/01/19 00:03:13 Oh, this is just a cleanup that I noticed while ma
376 374
377 EXPECT_CALL(*observer(), 375 EXPECT_CALL(*observer(),
378 OnEncryptedTypesChanged( 376 OnEncryptedTypesChanged(
379 HasModelTypes(encrypted_user_types), false)); 377 HasModelTypes(encrypted_user_types), false));
380 EXPECT_CALL(observer2, 378 EXPECT_CALL(observer2,
381 OnEncryptedTypesChanged( 379 OnEncryptedTypesChanged(
382 HasModelTypes(encrypted_user_types), false)); 380 HasModelTypes(encrypted_user_types), false));
383 381
384 // Set all encrypted types 382 // Set all encrypted types
385 encrypted_types = EncryptableUserTypes(); 383 encrypted_types = EncryptableUserTypes();
(...skipping 1856 matching lines...) Expand 10 before | Expand all | Expand 10 after
2242 encryption_handler()->SetKeystoreKeys(keys, 2240 encryption_handler()->SetKeystoreKeys(keys,
2243 trans.GetWrappedTrans()); 2241 trans.GetWrappedTrans());
2244 } 2242 }
2245 PumpLoop(); 2243 PumpLoop();
2246 Mock::VerifyAndClearExpectations(observer()); 2244 Mock::VerifyAndClearExpectations(observer());
2247 2245
2248 VerifyMigratedNigoriWithTimestamp(1, CUSTOM_PASSPHRASE, kCustomPass); 2246 VerifyMigratedNigoriWithTimestamp(1, CUSTOM_PASSPHRASE, kCustomPass);
2249 } 2247 }
2250 2248
2251 } // namespace syncer 2249 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698