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

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

Issue 12114012: Remove syncer::IncomingInvalidationSource (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove comment Created 7 years, 10 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/non_blocking_invalidator.cc ('k') | sync/notifier/p2p_invalidator.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/non_blocking_invalidator.h" 5 #include "sync/notifier/non_blocking_invalidator.h"
6 6
7 #include "base/bind_helpers.h" 7 #include "base/bind_helpers.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 base::Bind(&base::DoNothing), 72 base::Bind(&base::DoNothing),
73 run_loop.QuitClosure())); 73 run_loop.QuitClosure()));
74 run_loop.Run(); 74 run_loop.Run();
75 } 75 }
76 76
77 void TriggerOnInvalidatorStateChange(InvalidatorState state) { 77 void TriggerOnInvalidatorStateChange(InvalidatorState state) {
78 invalidator_->OnInvalidatorStateChange(state); 78 invalidator_->OnInvalidatorStateChange(state);
79 } 79 }
80 80
81 void TriggerOnIncomingInvalidation( 81 void TriggerOnIncomingInvalidation(
82 const ObjectIdInvalidationMap& invalidation_map, 82 const ObjectIdInvalidationMap& invalidation_map) {
83 IncomingInvalidationSource source) { 83 invalidator_->OnIncomingInvalidation(invalidation_map);
84 invalidator_->OnIncomingInvalidation(invalidation_map, source);
85 } 84 }
86 85
87 private: 86 private:
88 MessageLoop message_loop_; 87 MessageLoop message_loop_;
89 base::Thread io_thread_; 88 base::Thread io_thread_;
90 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; 89 scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
91 scoped_ptr<NonBlockingInvalidator> invalidator_; 90 scoped_ptr<NonBlockingInvalidator> invalidator_;
92 }; 91 };
93 92
94 INSTANTIATE_TYPED_TEST_CASE_P( 93 INSTANTIATE_TYPED_TEST_CASE_P(
95 NonBlockingInvalidatorTest, InvalidatorTest, 94 NonBlockingInvalidatorTest, InvalidatorTest,
96 NonBlockingInvalidatorTestDelegate); 95 NonBlockingInvalidatorTestDelegate);
97 96
98 } // namespace 97 } // namespace
99 98
100 } // namespace syncer 99 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/notifier/non_blocking_invalidator.cc ('k') | sync/notifier/p2p_invalidator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698