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/internal_api/public/base/model_type_test_util.h" | 5 #include "sync/internal_api/public/base/model_type_test_util.h" |
| 6 #include "sync/notifier/invalidation_util.h" |
| 7 #include "sync/notifier/object_id_invalidation_map.h" |
6 #include "sync/sessions/nudge_tracker.h" | 8 #include "sync/sessions/nudge_tracker.h" |
7 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
8 | 10 |
9 namespace syncer { | 11 namespace syncer { |
10 | 12 |
11 namespace { | 13 namespace { |
12 | 14 |
13 testing::AssertionResult ModelTypeSetEquals(ModelTypeSet a, ModelTypeSet b) { | 15 testing::AssertionResult ModelTypeSetEquals(ModelTypeSet a, ModelTypeSet b) { |
14 if (a.Equals(b)) { | 16 if (a.Equals(b)) { |
15 return testing::AssertionSuccess(); | 17 return testing::AssertionSuccess(); |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 EXPECT_EQ(throttle2_length - throttle1_length, | 458 EXPECT_EQ(throttle2_length - throttle1_length, |
457 nudge_tracker_.GetTimeUntilNextUnthrottle(t1)); | 459 nudge_tracker_.GetTimeUntilNextUnthrottle(t1)); |
458 | 460 |
459 // Expire the second interval. | 461 // Expire the second interval. |
460 nudge_tracker_.UpdateTypeThrottlingState(t2); | 462 nudge_tracker_.UpdateTypeThrottlingState(t2); |
461 EXPECT_TRUE(nudge_tracker_.GetThrottledTypes().Empty()); | 463 EXPECT_TRUE(nudge_tracker_.GetThrottledTypes().Empty()); |
462 } | 464 } |
463 | 465 |
464 } // namespace sessions | 466 } // namespace sessions |
465 } // namespace syncer | 467 } // namespace syncer |
OLD | NEW |