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 "chrome/browser/sync/notifier/p2p_notifier.h" | 5 #include "chrome/browser/sync/notifier/p2p_notifier.h" |
6 | 6 |
7 #include <cstddef> | 7 #include <cstddef> |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "chrome/browser/sync/notifier/mock_sync_notifier_observer.h" | 12 #include "chrome/browser/sync/notifier/mock_sync_notifier_observer.h" |
13 #include "chrome/browser/sync/syncable/model_type.h" | 13 #include "sync/syncable/model_type.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 namespace sync_notifier { | 16 namespace sync_notifier { |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 using ::testing::_; | 20 using ::testing::_; |
21 using ::testing::Mock; | 21 using ::testing::Mock; |
22 using ::testing::StrictMock; | 22 using ::testing::StrictMock; |
23 | 23 |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 | 250 |
251 // Should be dropped. | 251 // Should be dropped. |
252 Mock::VerifyAndClearExpectations(&mock_observer_); | 252 Mock::VerifyAndClearExpectations(&mock_observer_); |
253 p2p_notifier_->SendNotificationDataForTest( | 253 p2p_notifier_->SendNotificationDataForTest( |
254 P2PNotificationData("sender2", NOTIFY_ALL, syncable::ModelTypeSet())); | 254 P2PNotificationData("sender2", NOTIFY_ALL, syncable::ModelTypeSet())); |
255 } | 255 } |
256 | 256 |
257 } // namespace | 257 } // namespace |
258 | 258 |
259 } // namespace sync_notifier | 259 } // namespace sync_notifier |
OLD | NEW |