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

Side by Side Diff: chrome/browser/sync/profile_sync_service_unittest.cc

Issue 10911084: Implement Invalidator::Acknowledge (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adapt patch to new TickClock interface Created 7 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
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | sync/internal_api/public/sync_manager.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/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/compiler_specific.h" 6 #include "base/compiler_specific.h"
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 virtual void UpdateRegisteredIds(syncer::InvalidationHandler* handler, 540 virtual void UpdateRegisteredIds(syncer::InvalidationHandler* handler,
541 const syncer::ObjectIdSet& ids) OVERRIDE { 541 const syncer::ObjectIdSet& ids) OVERRIDE {
542 service_->UpdateRegisteredInvalidationIds(handler, ids); 542 service_->UpdateRegisteredInvalidationIds(handler, ids);
543 } 543 }
544 544
545 virtual void UnregisterHandler( 545 virtual void UnregisterHandler(
546 syncer::InvalidationHandler* handler) OVERRIDE { 546 syncer::InvalidationHandler* handler) OVERRIDE {
547 service_->UnregisterInvalidationHandler(handler); 547 service_->UnregisterInvalidationHandler(handler);
548 } 548 }
549 549
550 virtual void Acknowledge(const invalidation::ObjectId& id,
551 const syncer::AckHandle& ack_handle) OVERRIDE {
552 // Do nothing.
553 }
554
550 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE { 555 virtual syncer::InvalidatorState GetInvalidatorState() const OVERRIDE {
551 return service_->GetInvalidatorState(); 556 return service_->GetInvalidatorState();
552 } 557 }
553 558
554 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE { 559 virtual void SetUniqueId(const std::string& unique_id) OVERRIDE {
555 // Do nothing. 560 // Do nothing.
556 } 561 }
557 562
558 virtual void UpdateCredentials( 563 virtual void UpdateCredentials(
559 const std::string& email, const std::string& token) OVERRIDE { 564 const std::string& email, const std::string& token) OVERRIDE {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 namespace syncer { 633 namespace syncer {
629 namespace { 634 namespace {
630 635
631 // ProfileSyncService should behave just like an invalidator. 636 // ProfileSyncService should behave just like an invalidator.
632 INSTANTIATE_TYPED_TEST_CASE_P( 637 INSTANTIATE_TYPED_TEST_CASE_P(
633 ProfileSyncServiceInvalidatorTest, InvalidatorTest, 638 ProfileSyncServiceInvalidatorTest, InvalidatorTest,
634 ::browser_sync::ProfileSyncServiceInvalidatorTestDelegate); 639 ::browser_sync::ProfileSyncServiceInvalidatorTestDelegate);
635 640
636 } // namespace 641 } // namespace
637 } // namespace syncer 642 } // namespace syncer
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | sync/internal_api/public/sync_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698