OLD | NEW |
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 27 matching lines...) Expand all Loading... |
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( | 47 void TriggerOnIncomingInvalidation( |
48 const ObjectIdInvalidationMap& invalidation_map, | 48 const ObjectIdInvalidationMap& invalidation_map) { |
49 IncomingInvalidationSource source) { | 49 invalidator_->EmitOnIncomingInvalidation(invalidation_map); |
50 invalidator_->EmitOnIncomingInvalidation(invalidation_map, source); | |
51 } | 50 } |
52 | 51 |
53 private: | 52 private: |
54 scoped_ptr<FakeInvalidator> invalidator_; | 53 scoped_ptr<FakeInvalidator> invalidator_; |
55 }; | 54 }; |
56 | 55 |
57 INSTANTIATE_TYPED_TEST_CASE_P( | 56 INSTANTIATE_TYPED_TEST_CASE_P( |
58 FakeInvalidatorTest, InvalidatorTest, | 57 FakeInvalidatorTest, InvalidatorTest, |
59 FakeInvalidatorTestDelegate); | 58 FakeInvalidatorTestDelegate); |
60 | 59 |
61 } // namespace | 60 } // namespace |
62 | 61 |
63 } // namespace syncer | 62 } // namespace syncer |
OLD | NEW |