1// Copyright 2013 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#ifndef CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_SYNC_NOTIFIER_TEST_UTILS_H_ 6#define CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_SYNC_NOTIFIER_TEST_UTILS_H_ 7 8#include <string> 9 10#include "base/basictypes.h" 11#include "sync/api/sync_data.h" 12#include "sync/protocol/sync.pb.h" 13#include "sync/protocol/synced_notification_specifics.pb.h" 14 15 16// Fake data for creating a SyncedNotification. 17extern const char kAppId1[]; 18extern const char kAppId2[]; 19extern const char kAppId3[]; 20extern const char kAppId4[]; 21extern const char kAppId5[]; 22extern const char kAppId6[]; 23extern const char kAppId7[]; 24extern const char kKey1[]; 25extern const char kKey2[]; 26extern const char kKey3[]; 27extern const char kKey4[]; 28extern const char kKey5[]; 29extern const char kKey6[]; 30extern const char kKey7[]; 31extern const char kIconUrl1[]; 32extern const char kIconUrl2[]; 33extern const char kIconUrl3[]; 34extern const char kIconUrl4[]; 35extern const char kIconUrl5[]; 36extern const char kIconUrl6[]; 37extern const char kIconUrl7[]; 38extern const char kTitle1[]; 39extern const char kTitle2[]; 40extern const char kTitle3[]; 41extern const char kTitle4[]; 42extern const char kTitle5[]; 43extern const char kTitle6[]; 44extern const char kTitle7[]; 45extern const char kText1[]; 46extern const char kText2[]; 47extern const char kText3[]; 48extern const char kText4[]; 49extern const char kText5[]; 50extern const char kText6[]; 51extern const char kText7[]; 52extern const char kText1And1[]; 53extern const char kImageUrl1[]; 54extern const char kImageUrl2[]; 55extern const char kImageUrl3[]; 56extern const char kImageUrl4[]; 57extern const char kImageUrl5[]; 58extern const char kImageUrl6[]; 59extern const char kImageUrl7[]; 60extern const char kExpectedOriginUrl[]; 61extern const char kDefaultDestinationTitle[]; 62extern const char kDefaultDestinationIconUrl[]; 63extern const char kDefaultDestinationUrl[]; 64extern const char kButtonOneTitle[]; 65extern const char kButtonOneIconUrl[]; 66extern const char kButtonOneUrl[]; 67extern const char kButtonTwoTitle[]; 68extern const char kButtonTwoIconUrl[]; 69extern const char kButtonTwoUrl[]; 70extern const char kContainedTitle1[]; 71extern const char kContainedTitle2[]; 72extern const char kContainedTitle3[]; 73extern const char kContainedMessage1[]; 74extern const char kContainedMessage2[]; 75extern const char kContainedMessage3[]; 76const uint64 kFakeCreationTime = 42; 77const int kProtobufPriority = static_cast<int>( 78 sync_pb::CoalescedSyncedNotification_Priority_LOW); 79 80const sync_pb::CoalescedSyncedNotification_ReadState kRead = 81 sync_pb::CoalescedSyncedNotification_ReadState_READ; 82const sync_pb::CoalescedSyncedNotification_ReadState kDismissed = 83 sync_pb::CoalescedSyncedNotification_ReadState_DISMISSED; 84const sync_pb::CoalescedSyncedNotification_ReadState kUnread = 85 sync_pb::CoalescedSyncedNotification_ReadState_UNREAD; 86 87// This function builds the sync data object we use to create a testing 88// notification. 89syncer::SyncData CreateSyncData( 90 const std::string& title, 91 const std::string& text, 92 const std::string& app_icon_url, 93 const std::string& image_url, 94 const std::string& app_id, 95 const std::string& key, 96 const sync_pb::CoalescedSyncedNotification_ReadState read_state); 97 98#endif // CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_SYNC_NOTIFIER_TEST_UTILS_H_ 99