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

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

Issue 11052007: Rename ModelType/ObjectIdStateMap to InvalidationMap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 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/fake_invalidator.cc ('k') | sync/notifier/invalidation_handler.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 "base/compiler_specific.h" 5 #include "base/compiler_specific.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "sync/notifier/fake_invalidator.h" 7 #include "sync/notifier/fake_invalidator.h"
8 #include "sync/notifier/invalidator_test_template.h" 8 #include "sync/notifier/invalidator_test_template.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
(...skipping 26 matching lines...) Expand all
37 } 37 }
38 38
39 void WaitForInvalidator() { 39 void WaitForInvalidator() {
40 // Do Nothing. 40 // Do Nothing.
41 } 41 }
42 42
43 void TriggerOnInvalidatorStateChange(InvalidatorState state) { 43 void TriggerOnInvalidatorStateChange(InvalidatorState state) {
44 invalidator_->EmitOnInvalidatorStateChange(state); 44 invalidator_->EmitOnInvalidatorStateChange(state);
45 } 45 }
46 46
47 void TriggerOnIncomingInvalidation(const ObjectIdStateMap& id_state_map, 47 void TriggerOnIncomingInvalidation(
48 IncomingInvalidationSource source) { 48 const ObjectIdInvalidationMap& invalidation_map,
49 invalidator_->EmitOnIncomingInvalidation(id_state_map, source); 49 IncomingInvalidationSource source) {
50 invalidator_->EmitOnIncomingInvalidation(invalidation_map, source);
50 } 51 }
51 52
52 static bool InvalidatorHandlesDeprecatedState() { 53 static bool InvalidatorHandlesDeprecatedState() {
53 return false; 54 return false;
54 } 55 }
55 56
56 private: 57 private:
57 scoped_ptr<FakeInvalidator> invalidator_; 58 scoped_ptr<FakeInvalidator> invalidator_;
58 }; 59 };
59 60
60 INSTANTIATE_TYPED_TEST_CASE_P( 61 INSTANTIATE_TYPED_TEST_CASE_P(
61 FakeInvalidatorTest, InvalidatorTest, 62 FakeInvalidatorTest, InvalidatorTest,
62 FakeInvalidatorTestDelegate); 63 FakeInvalidatorTestDelegate);
63 64
64 } // namespace 65 } // namespace
65 66
66 } // namespace syncer 67 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/notifier/fake_invalidator.cc ('k') | sync/notifier/invalidation_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698