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 "google/cacheinvalidation/v2/types.pb.h" | 5 #include "google/cacheinvalidation/types.pb.h" |
6 #include "sync/notifier/sync_notifier_helper.h" | 6 #include "sync/notifier/sync_notifier_helper.h" |
7 #include "sync/notifier/mock_sync_notifier_observer.h" | 7 #include "sync/notifier/mock_sync_notifier_observer.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 | 9 |
10 using testing::StrictMock; | 10 using testing::StrictMock; |
11 | 11 |
12 namespace syncer { | 12 namespace syncer { |
13 | 13 |
14 class SyncNotifierHelperTest : public testing::Test { | 14 class SyncNotifierHelperTest : public testing::Test { |
15 protected: | 15 protected: |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 dispatched_payloads[kObjectId1] = "1"; | 147 dispatched_payloads[kObjectId1] = "1"; |
148 dispatched_payloads[kObjectId2] = "2"; | 148 dispatched_payloads[kObjectId2] = "2"; |
149 dispatched_payloads[kObjectId3] = "3"; | 149 dispatched_payloads[kObjectId3] = "3"; |
150 helper.DispatchInvalidationsToHandlers(dispatched_payloads, | 150 helper.DispatchInvalidationsToHandlers(dispatched_payloads, |
151 REMOTE_NOTIFICATION); | 151 REMOTE_NOTIFICATION); |
152 helper.EmitOnNotificationsEnabled(); | 152 helper.EmitOnNotificationsEnabled(); |
153 helper.EmitOnNotificationsDisabled(TRANSIENT_NOTIFICATION_ERROR); | 153 helper.EmitOnNotificationsDisabled(TRANSIENT_NOTIFICATION_ERROR); |
154 } | 154 } |
155 | 155 |
156 } // namespace syncer | 156 } // namespace syncer |
OLD | NEW |