OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/glue/favicon_cache.h" | 5 #include "chrome/browser/sync/glue/favicon_cache.h" |
6 | 6 |
7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
11 #include "chrome/browser/chrome_notification_types.h" | 11 #include "chrome/browser/chrome_notification_types.h" |
12 #include "chrome/browser/history/history_notifications.h" | 12 #include "chrome/browser/history/history_notifications.h" |
13 #include "content/public/browser/notification_service.h" | 13 #include "content/public/browser/notification_service.h" |
14 #include "sync/api/attachments/attachment_id.h" | 14 #include "sync/api/attachments/attachment_id.h" |
15 #include "sync/api/attachments/attachment_service_proxy_for_test.h" | |
16 #include "sync/api/sync_change_processor_wrapper_for_test.h" | 15 #include "sync/api/sync_change_processor_wrapper_for_test.h" |
17 #include "sync/api/sync_error_factory_mock.h" | 16 #include "sync/api/sync_error_factory_mock.h" |
18 #include "sync/api/time.h" | 17 #include "sync/api/time.h" |
| 18 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test
.h" |
19 #include "sync/protocol/favicon_image_specifics.pb.h" | 19 #include "sync/protocol/favicon_image_specifics.pb.h" |
20 #include "sync/protocol/favicon_tracking_specifics.pb.h" | 20 #include "sync/protocol/favicon_tracking_specifics.pb.h" |
21 #include "sync/protocol/sync.pb.h" | 21 #include "sync/protocol/sync.pb.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
23 | 23 |
24 namespace browser_sync { | 24 namespace browser_sync { |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 // Total number of favicons to use in sync test batches. | 28 // Total number of favicons to use in sync test batches. |
(...skipping 1903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1932 EXPECT_EQ(changes[4].change_type(), syncer::SyncChange::ACTION_ADD); | 1932 EXPECT_EQ(changes[4].change_type(), syncer::SyncChange::ACTION_ADD); |
1933 EXPECT_EQ(changes[4].sync_data().GetDataType(), syncer::FAVICON_TRACKING); | 1933 EXPECT_EQ(changes[4].sync_data().GetDataType(), syncer::FAVICON_TRACKING); |
1934 EXPECT_EQ(kMaxSyncFavicons, GetFaviconId(changes[4])); | 1934 EXPECT_EQ(kMaxSyncFavicons, GetFaviconId(changes[4])); |
1935 // Expire tracking for favicon[0]. | 1935 // Expire tracking for favicon[0]. |
1936 EXPECT_EQ(changes[5].change_type(), syncer::SyncChange::ACTION_DELETE); | 1936 EXPECT_EQ(changes[5].change_type(), syncer::SyncChange::ACTION_DELETE); |
1937 EXPECT_EQ(changes[5].sync_data().GetDataType(), syncer::FAVICON_TRACKING); | 1937 EXPECT_EQ(changes[5].sync_data().GetDataType(), syncer::FAVICON_TRACKING); |
1938 EXPECT_EQ(0, GetFaviconId(changes[5])); | 1938 EXPECT_EQ(0, GetFaviconId(changes[5])); |
1939 } | 1939 } |
1940 | 1940 |
1941 } // namespace browser_sync | 1941 } // namespace browser_sync |
OLD | NEW |