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

Side by Side Diff: sync/notifier/registration_manager_unittest.cc

Issue 10698014: [Sync] Rename csync namespace to syncer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 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/notifier/registration_manager.cc ('k') | sync/notifier/state_writer.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/notifier/registration_manager.h" 5 #include "sync/notifier/registration_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <cstddef> 9 #include <cstddef>
10 #include <deque> 10 #include <deque>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/message_loop.h" 14 #include "base/message_loop.h"
15 #include "base/stl_util.h" 15 #include "base/stl_util.h"
16 #include "google/cacheinvalidation/include/invalidation-client.h" 16 #include "google/cacheinvalidation/include/invalidation-client.h"
17 #include "sync/notifier/invalidation_util.h" 17 #include "sync/notifier/invalidation_util.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 19
20 namespace csync { 20 namespace syncer {
21 namespace { 21 namespace {
22 22
23 // Fake registration manager that lets you override jitter. 23 // Fake registration manager that lets you override jitter.
24 class FakeRegistrationManager : public RegistrationManager { 24 class FakeRegistrationManager : public RegistrationManager {
25 public: 25 public:
26 explicit FakeRegistrationManager( 26 explicit FakeRegistrationManager(
27 invalidation::InvalidationClient* invalidation_client) 27 invalidation::InvalidationClient* invalidation_client)
28 : RegistrationManager(invalidation_client), 28 : RegistrationManager(invalidation_client),
29 jitter_(0.0) {} 29 jitter_(0.0) {}
30 30
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 0.0, 415 0.0,
416 fake_registration_manager_.GetPendingRegistrationsForTest()); 416 fake_registration_manager_.GetPendingRegistrationsForTest());
417 417
418 fake_registration_manager_.MarkAllRegistrationsLost(); 418 fake_registration_manager_.MarkAllRegistrationsLost();
419 ExpectPendingRegistrations( 419 ExpectPendingRegistrations(
420 enabled_ids, 0.0, 420 enabled_ids, 0.0,
421 fake_registration_manager_.GetPendingRegistrationsForTest()); 421 fake_registration_manager_.GetPendingRegistrationsForTest());
422 } 422 }
423 423
424 } // namespace 424 } // namespace
425 } // namespace notifier 425 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/notifier/registration_manager.cc ('k') | sync/notifier/state_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698