OLD | NEW |
1 // Copyright (c) 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 "base/format_macros.h" | 5 #include "base/format_macros.h" |
6 #include "base/location.h" | 6 #include "base/location.h" |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
9 #include "sync/engine/apply_control_data_updates.h" | 9 #include "sync/engine/apply_control_data_updates.h" |
10 #include "sync/engine/syncer.h" | 10 #include "sync/engine/syncer.h" |
11 #include "sync/engine/syncer_util.h" | 11 #include "sync/engine/syncer_util.h" |
12 #include "sync/internal_api/public/test/test_entry_factory.h" | 12 #include "sync/internal_api/public/test/test_entry_factory.h" |
13 #include "sync/protocol/nigori_specifics.pb.h" | 13 #include "sync/protocol/nigori_specifics.pb.h" |
14 #include "sync/syncable/mutable_entry.h" | 14 #include "sync/syncable/mutable_entry.h" |
15 #include "sync/syncable/nigori_util.h" | 15 #include "sync/syncable/nigori_util.h" |
16 #include "sync/syncable/read_transaction.h" | 16 #include "sync/syncable/syncable_read_transaction.h" |
17 #include "sync/syncable/syncable_util.h" | 17 #include "sync/syncable/syncable_util.h" |
18 #include "sync/syncable/write_transaction.h" | 18 #include "sync/syncable/syncable_write_transaction.h" |
19 #include "sync/test/engine/fake_model_worker.h" | 19 #include "sync/test/engine/fake_model_worker.h" |
20 #include "sync/test/engine/syncer_command_test.h" | 20 #include "sync/test/engine/syncer_command_test.h" |
21 #include "sync/test/engine/test_id_factory.h" | 21 #include "sync/test/engine/test_id_factory.h" |
22 #include "sync/test/fake_sync_encryption_handler.h" | 22 #include "sync/test/fake_sync_encryption_handler.h" |
23 #include "sync/util/cryptographer.h" | 23 #include "sync/util/cryptographer.h" |
24 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
25 | 25 |
26 namespace syncer { | 26 namespace syncer { |
27 | 27 |
28 using syncable::MutableEntry; | 28 using syncable::MutableEntry; |
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
910 local_specifics); | 910 local_specifics); |
911 ApplyControlDataUpdates(session()); | 911 ApplyControlDataUpdates(session()); |
912 | 912 |
913 EXPECT_FALSE(entry_factory_->GetIsUnappliedForItem(experiment_handle)); | 913 EXPECT_FALSE(entry_factory_->GetIsUnappliedForItem(experiment_handle)); |
914 EXPECT_TRUE( | 914 EXPECT_TRUE( |
915 entry_factory_->GetLocalSpecificsForItem(experiment_handle). | 915 entry_factory_->GetLocalSpecificsForItem(experiment_handle). |
916 experiments().keystore_encryption().enabled()); | 916 experiments().keystore_encryption().enabled()); |
917 } | 917 } |
918 | 918 |
919 } // namespace syncer | 919 } // namespace syncer |
OLD | NEW |