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

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

Issue 17052007: sync: Expose sync functionality as functions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Finish addressing latest review comments Created 7 years, 5 months 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.cc ('k') | sync/sessions/sync_session.h » ('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/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
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
OLDNEW
« no previous file with comments | « sync/sessions/nudge_tracker.cc ('k') | sync/sessions/sync_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698