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

Side by Side Diff: chrome/browser/invalidation/ticl_invalidation_service_unittest.cc

Issue 23754021: Invalidation trickles mega-patch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/invalidation/ticl_invalidation_service.h" 5 #include "chrome/browser/invalidation/ticl_invalidation_service.h"
6 6
7 #include "chrome/browser/invalidation/invalidation_service_factory.h" 7 #include "chrome/browser/invalidation/invalidation_service_factory.h"
8 #include "chrome/browser/invalidation/invalidation_service_test_template.h" 8 #include "chrome/browser/invalidation/invalidation_service_test_template.h"
9 #include "chrome/test/base/testing_profile.h" 9 #include "chrome/test/base/testing_profile.h"
10 #include "sync/notifier/fake_invalidation_handler.h" 10 #include "sync/notifier/fake_invalidation_handler.h"
(...skipping 25 matching lines...) Expand all
36 36
37 void DestroyInvalidationService() { 37 void DestroyInvalidationService() {
38 invalidation_service_->Shutdown(); 38 invalidation_service_->Shutdown();
39 } 39 }
40 40
41 void TriggerOnInvalidatorStateChange(syncer::InvalidatorState state) { 41 void TriggerOnInvalidatorStateChange(syncer::InvalidatorState state) {
42 fake_invalidator_->EmitOnInvalidatorStateChange(state); 42 fake_invalidator_->EmitOnInvalidatorStateChange(state);
43 } 43 }
44 44
45 void TriggerOnIncomingInvalidation( 45 void TriggerOnIncomingInvalidation(
46 const syncer::ObjectIdInvalidationMap& invalidation_map) { 46 const syncer::ObjectIdInvalidationMap& invalidations) {
47 fake_invalidator_->EmitOnIncomingInvalidation(invalidation_map); 47 fake_invalidator_->EmitOnIncomingInvalidation(invalidations);
48 } 48 }
49 49
50 syncer::FakeInvalidator* fake_invalidator_; // owned by the service. 50 syncer::FakeInvalidator* fake_invalidator_; // owned by the service.
51 scoped_ptr<TiclInvalidationService> invalidation_service_; 51 scoped_ptr<TiclInvalidationService> invalidation_service_;
52 scoped_ptr<TestingProfile> profile_; 52 scoped_ptr<TestingProfile> profile_;
53 }; 53 };
54 54
55 INSTANTIATE_TYPED_TEST_CASE_P( 55 INSTANTIATE_TYPED_TEST_CASE_P(
56 TiclInvalidationServiceTest, InvalidationServiceTest, 56 TiclInvalidationServiceTest, InvalidationServiceTest,
57 TiclInvalidationServiceTestDelegate); 57 TiclInvalidationServiceTestDelegate);
58 58
59 } // namespace invalidation 59 } // namespace invalidation
OLDNEW
« no previous file with comments | « chrome/browser/invalidation/ticl_invalidation_service.cc ('k') | chrome/browser/policy/cloud/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698