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

Side by Side Diff: sync/sessions/nudge_tracker_unittest.cc

Issue 56113003: Implement new invalidations ack tracking system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modify drive TODO comment + rebase Created 7 years 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
« no previous file with comments | « sync/sessions/nudge_tracker.h ('k') | sync/sync_internal_api.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « sync/sessions/nudge_tracker.h ('k') | sync/sync_internal_api.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698