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

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

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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
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 "chrome/browser/sync/notifier/registration_manager.h" 5 #include "chrome/browser/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 "chrome/browser/sync/notifier/invalidation_util.h" 15 #include "chrome/browser/sync/notifier/invalidation_util.h"
16 #include "chrome/browser/sync/syncable/model_type.h"
17 #include "google/cacheinvalidation/include/invalidation-client.h" 16 #include "google/cacheinvalidation/include/invalidation-client.h"
17 #include "sync/syncable/model_type.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 19
20 namespace sync_notifier { 20 namespace sync_notifier {
21 namespace { 21 namespace {
22 22
23 syncable::ModelType ObjectIdToModelType( 23 syncable::ModelType ObjectIdToModelType(
24 const invalidation::ObjectId& object_id) { 24 const invalidation::ObjectId& object_id) {
25 syncable::ModelType model_type = syncable::UNSPECIFIED; 25 syncable::ModelType model_type = syncable::UNSPECIFIED;
26 EXPECT_TRUE(ObjectIdToRealModelType(object_id, &model_type)); 26 EXPECT_TRUE(ObjectIdToRealModelType(object_id, &model_type));
27 return model_type; 27 return model_type;
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 fake_registration_manager_.GetPendingRegistrations()); 428 fake_registration_manager_.GetPendingRegistrations());
429 429
430 fake_registration_manager_.MarkAllRegistrationsLost(); 430 fake_registration_manager_.MarkAllRegistrationsLost();
431 ExpectPendingRegistrations( 431 ExpectPendingRegistrations(
432 enabled_types, 0.0, 432 enabled_types, 0.0,
433 fake_registration_manager_.GetPendingRegistrations()); 433 fake_registration_manager_.GetPendingRegistrations());
434 } 434 }
435 435
436 } // namespace 436 } // namespace
437 } // namespace notifier 437 } // namespace notifier
OLDNEW
« no previous file with comments | « chrome/browser/sync/notifier/registration_manager.cc ('k') | chrome/browser/sync/notifier/sync_notifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698