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

Side by Side Diff: chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler_unittest.cc

Issue 387733004: Move sync/notifier to components/invalidation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: (GN) Comment out dependency on internal target Created 6 years, 5 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) 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 "chrome/browser/extensions/api/push_messaging/push_messaging_invalidati on_handler.h" 5 #include "chrome/browser/extensions/api/push_messaging/push_messaging_invalidati on_handler.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/extensions/api/push_messaging/push_messaging_invalidati on_handler_delegate.h" 9 #include "chrome/browser/extensions/api/push_messaging/push_messaging_invalidati on_handler_delegate.h"
10 #include "components/invalidation/invalidation_logger.h" 10 #include "components/invalidation/invalidation_logger.h"
11 #include "components/invalidation/invalidation_service.h" 11 #include "components/invalidation/invalidation_service.h"
12 #include "components/invalidation/object_id_invalidation_map.h"
12 #include "google/cacheinvalidation/types.pb.h" 13 #include "google/cacheinvalidation/types.pb.h"
13 #include "sync/notifier/object_id_invalidation_map.h"
14 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 using ::testing::NotNull; 17 using ::testing::NotNull;
18 using ::testing::SaveArg; 18 using ::testing::SaveArg;
19 using ::testing::StrictMock; 19 using ::testing::StrictMock;
20 using ::testing::_; 20 using ::testing::_;
21 21
22 namespace extensions { 22 namespace extensions {
23 23
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 203
204 // An unrelated object should be unaffected by all the above. 204 // An unrelated object should be unaffected by all the above.
205 syncer::ObjectIdInvalidationMap map5; 205 syncer::ObjectIdInvalidationMap map5;
206 map5.Insert(syncer::Invalidation::Init(id3, 1, "1")); 206 map5.Insert(syncer::Invalidation::Init(id3, 1, "1"));
207 EXPECT_CALL(delegate_, OnMessage("dddddddddddddddddddddddddddddddd", 3, "1")); 207 EXPECT_CALL(delegate_, OnMessage("dddddddddddddddddddddddddddddddd", 3, "1"));
208 handler_->OnIncomingInvalidation(map5); 208 handler_->OnIncomingInvalidation(map5);
209 testing::Mock::VerifyAndClearExpectations(&delegate_); 209 testing::Mock::VerifyAndClearExpectations(&delegate_);
210 } 210 }
211 211
212 } // namespace extensions 212 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698