| Index: chrome/test/live_sync/live_sync_test.cc
|
| diff --git a/chrome/test/live_sync/live_sync_test.cc b/chrome/test/live_sync/live_sync_test.cc
|
| index a3f94b9951f98fc932d8cb112b6cb49ed1178fb9..ed5d2717044a41edf5c75558929db2ed3cfe46b3 100644
|
| --- a/chrome/test/live_sync/live_sync_test.cc
|
| +++ b/chrome/test/live_sync/live_sync_test.cc
|
| @@ -534,7 +534,7 @@ bool LiveSyncTest::AwaitQuiescence() {
|
| return ProfileSyncServiceHarness::AwaitQuiescence(clients());
|
| }
|
|
|
| -bool LiveSyncTest::ServerSupportsNotificationControl() {
|
| +bool LiveSyncTest::ServerSupportsNotificationControl() const {
|
| EXPECT_NE(SERVER_TYPE_UNDECIDED, server_type_);
|
|
|
| // Supported only if we're using the python testserver.
|
| @@ -549,6 +549,14 @@ void LiveSyncTest::DisableNotifications() {
|
| UTF16ToASCII(browser()->GetSelectedTabContents()->GetTitle()));
|
| }
|
|
|
| +void LiveSyncTest::EnableNotifications() {
|
| + ASSERT_TRUE(ServerSupportsNotificationControl());
|
| + std::string path = "chromiumsync/enablenotifications";
|
| + ui_test_utils::NavigateToURL(browser(), sync_server_.GetURL(path));
|
| + ASSERT_EQ("Notifications enabled",
|
| + UTF16ToASCII(browser()->GetSelectedTabContents()->GetTitle()));
|
| +}
|
| +
|
| void LiveSyncTest::TriggerNotification(
|
| const syncable::ModelTypeSet& changed_types) {
|
| ASSERT_TRUE(ServerSupportsNotificationControl());
|
| @@ -564,7 +572,7 @@ void LiveSyncTest::TriggerNotification(
|
| UTF16ToASCII(browser()->GetSelectedTabContents()->GetTitle()));
|
| }
|
|
|
| -bool LiveSyncTest::ServerSupportsErrorTriggering() {
|
| +bool LiveSyncTest::ServerSupportsErrorTriggering() const {
|
| EXPECT_NE(SERVER_TYPE_UNDECIDED, server_type_);
|
|
|
| // Supported only if we're using the python testserver.
|
|
|