| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/nudge_tracker.h" | 5 #include "sync/sessions/nudge_tracker.h" |
| 6 | 6 |
| 7 #include "sync/internal_api/public/base/model_type_invalidation_map.h" | 7 #include "sync/internal_api/public/base/model_type_invalidation_map.h" |
| 8 #include "sync/internal_api/public/sessions/sync_source_info.h" | 8 #include "sync/internal_api/public/sessions/sync_source_info.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 ModelTypeSet(SESSIONS, PREFERENCES), | 405 ModelTypeSet(SESSIONS, PREFERENCES), |
| 406 nudge_tracker.GetThrottledTypes())); | 406 nudge_tracker.GetThrottledTypes())); |
| 407 EXPECT_EQ(throttle2_length - throttle1_length, | 407 EXPECT_EQ(throttle2_length - throttle1_length, |
| 408 nudge_tracker.GetTimeUntilNextUnthrottle(t1)); | 408 nudge_tracker.GetTimeUntilNextUnthrottle(t1)); |
| 409 | 409 |
| 410 // Expire the second interval. | 410 // Expire the second interval. |
| 411 nudge_tracker.UpdateTypeThrottlingState(t2); | 411 nudge_tracker.UpdateTypeThrottlingState(t2); |
| 412 EXPECT_TRUE(nudge_tracker.GetThrottledTypes().Empty()); | 412 EXPECT_TRUE(nudge_tracker.GetThrottledTypes().Empty()); |
| 413 } | 413 } |
| 414 | 414 |
| 415 | |
| 416 } // namespace sessions | 415 } // namespace sessions |
| 417 } // namespace syncer | 416 } // namespace syncer |
| OLD | NEW |