| 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 52e1311e87b12de76a743f35685e2a82655b808e..8a48223a4ea615511a7a3b62775ec5355687ee03 100644
|
| --- a/chrome/test/live_sync/live_sync_test.cc
|
| +++ b/chrome/test/live_sync/live_sync_test.cc
|
| @@ -527,7 +527,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.
|
| @@ -542,6 +542,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());
|
| @@ -557,7 +565,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.
|
|
|