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 <map> | 5 #include <map> |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/notifications/notification.h" | 10 #include "chrome/browser/notifications/notification.h" |
11 #include "chrome/browser/notifications/notification_test_util.h" | 11 #include "chrome/browser/notifications/notification_test_util.h" |
12 #include "chrome/browser/notifications/notification_ui_manager.h" | 12 #include "chrome/browser/notifications/notification_ui_manager.h" |
13 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service.h" | 13 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service.h" |
14 #include "chrome/browser/notifications/sync_notifier/synced_notification.h" | 14 #include "chrome/browser/notifications/sync_notifier/synced_notification.h" |
15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
16 #include "sync/api/sync_change.h" | 16 #include "sync/api/sync_change.h" |
17 #include "sync/api/sync_change_processor.h" | 17 #include "sync/api/sync_change_processor.h" |
18 #include "sync/api/sync_error_factory.h" | 18 #include "sync/api/sync_error_factory.h" |
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
780 EXPECT_EQ(kTitle2, notification1->GetTitle()); | 780 EXPECT_EQ(kTitle2, notification1->GetTitle()); |
781 | 781 |
782 // Ensure no new data will be sent to the remote store for notification1. | 782 // Ensure no new data will be sent to the remote store for notification1. |
783 EXPECT_EQ(0U, processor()->change_list_size()); | 783 EXPECT_EQ(0U, processor()->change_list_size()); |
784 EXPECT_FALSE(processor()->ContainsId(kKey1)); | 784 EXPECT_FALSE(processor()->ContainsId(kKey1)); |
785 } | 785 } |
786 | 786 |
787 // TODO(petewil): There are more tests to add, such as when we add an API | 787 // TODO(petewil): There are more tests to add, such as when we add an API |
788 // to allow data entry from the client, we might have a more up to date | 788 // to allow data entry from the client, we might have a more up to date |
789 // item on the client than the server, or we might have a merge conflict. | 789 // item on the client than the server, or we might have a merge conflict. |
OLD | NEW |