summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/profile_sync_service_unittest.cc
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-11 04:27:00 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-11 04:27:00 +0000
commit93d960ce8511041581e930c80d61e971bd13c744 (patch)
tree5d8faa467b99d7d388af980420b4412b828640e3 /chrome/browser/sync/profile_sync_service_unittest.cc
parent887383dc55f5d78ff62e6d8c97ed422bd7eb7653 (diff)
downloadchromium_src-93d960ce8511041581e930c80d61e971bd13c744.zip
chromium_src-93d960ce8511041581e930c80d61e971bd13c744.tar.gz
chromium_src-93d960ce8511041581e930c80d61e971bd13c744.tar.bz2
Implemented new notification methods.
Added a NotificationMethod enum, which defines NOTIFICATION_LEGACY, NOTIFICATION_TRANSITIONAL, NOTIFICATION_NEW (see bug for details). Made SendUpdateTask and SubscribeTask take a NotificationMethod and use it. Added command-line switch to override default notification method (currently NOTIFICATION_LEGACY). Added a bunch of unittests. BUG=33261 TEST=trybots, manual testing with notification client pythons scripts and browsers with different notification methods Review URL: http://codereview.chromium.org/573046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38740 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/profile_sync_service_unittest.cc')
-rw-r--r--chrome/browser/sync/profile_sync_service_unittest.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/sync/profile_sync_service_unittest.cc b/chrome/browser/sync/profile_sync_service_unittest.cc
index 584b77d..2e54c5b 100644
--- a/chrome/browser/sync/profile_sync_service_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_unittest.cc
@@ -20,6 +20,7 @@
#include "chrome/browser/sync/glue/bookmark_model_associator.h"
#include "chrome/browser/sync/glue/model_associator.h"
#include "chrome/browser/sync/glue/sync_backend_host.h"
+#include "chrome/browser/sync/notification_method.h"
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/sync/profile_sync_factory.h"
#include "chrome/common/chrome_switches.h"
@@ -131,7 +132,7 @@ class TestProfileSyncService : public ProfileSyncService {
TestHttpBridgeFactory* factory = new TestHttpBridgeFactory();
TestHttpBridgeFactory* factory2 = new TestHttpBridgeFactory();
backend()->InitializeForTestMode(L"testuser", factory, factory2,
- delete_sync_data_folder);
+ delete_sync_data_folder, browser_sync::kDefaultNotificationMethod);
// The SyncBackend posts a task to the current loop when initialization
// completes.
MessageLoop::current()->Run();