OLD | NEW |
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/sessions/sync_session.h" | 5 #include "sync/sessions/sync_session.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 123 |
124 ModelTypeSet ParamsMeaningAllEnabledTypes() { | 124 ModelTypeSet ParamsMeaningAllEnabledTypes() { |
125 ModelTypeSet request_params(BOOKMARKS, AUTOFILL); | 125 ModelTypeSet request_params(BOOKMARKS, AUTOFILL); |
126 return request_params; | 126 return request_params; |
127 } | 127 } |
128 | 128 |
129 ModelTypeSet ParamsMeaningJustOneEnabledType() { | 129 ModelTypeSet ParamsMeaningJustOneEnabledType() { |
130 return ModelTypeSet(AUTOFILL); | 130 return ModelTypeSet(AUTOFILL); |
131 } | 131 } |
132 | 132 |
133 MessageLoop message_loop_; | 133 base::MessageLoop message_loop_; |
134 bool controller_invocations_allowed_; | 134 bool controller_invocations_allowed_; |
135 scoped_ptr<SyncSession> session_; | 135 scoped_ptr<SyncSession> session_; |
136 scoped_ptr<SyncSessionContext> context_; | 136 scoped_ptr<SyncSessionContext> context_; |
137 std::vector<scoped_refptr<ModelSafeWorker> > workers_; | 137 std::vector<scoped_refptr<ModelSafeWorker> > workers_; |
138 ModelSafeRoutingInfo routes_; | 138 ModelSafeRoutingInfo routes_; |
139 FakeExtensionsActivityMonitor extensions_activity_monitor_; | 139 FakeExtensionsActivityMonitor extensions_activity_monitor_; |
140 scoped_ptr<ThrottledDataTypeTracker> throttled_data_type_tracker_; | 140 scoped_ptr<ThrottledDataTypeTracker> throttled_data_type_tracker_; |
141 }; | 141 }; |
142 | 142 |
143 TEST_F(SyncSessionTest, MoreToDownloadIfDownloadFailed) { | 143 TEST_F(SyncSessionTest, MoreToDownloadIfDownloadFailed) { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 | 187 |
188 ASSERT_EQ(3U, invalidation_map.size()); | 188 ASSERT_EQ(3U, invalidation_map.size()); |
189 EXPECT_EQ(invalidation_map[BOOKMARKS].payload, payload); | 189 EXPECT_EQ(invalidation_map[BOOKMARKS].payload, payload); |
190 EXPECT_EQ(invalidation_map[PASSWORDS].payload, payload); | 190 EXPECT_EQ(invalidation_map[PASSWORDS].payload, payload); |
191 EXPECT_EQ(invalidation_map[AUTOFILL].payload, payload); | 191 EXPECT_EQ(invalidation_map[AUTOFILL].payload, payload); |
192 } | 192 } |
193 | 193 |
194 } // namespace | 194 } // namespace |
195 } // namespace sessions | 195 } // namespace sessions |
196 } // namespace syncer | 196 } // namespace syncer |
OLD | NEW |