From c0e11ab531aae20470289475d69ac507d9715262 Mon Sep 17 00:00:00 2001 From: "rsimha@chromium.org" Date: Wed, 25 Aug 2010 23:34:18 +0000 Subject: Add the apps datatype to the python sync server. BUG=53370 TEST=sync_integration_tests Review URL: http://codereview.chromium.org/3207004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57419 0039d316-1c4b-4281-b951-d872f2087c98 --- net/tools/testserver/chromiumsync.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'net/tools/testserver') diff --git a/net/tools/testserver/chromiumsync.py b/net/tools/testserver/chromiumsync.py index 33ab8be..41a2d2f 100755 --- a/net/tools/testserver/chromiumsync.py +++ b/net/tools/testserver/chromiumsync.py @@ -13,6 +13,7 @@ import operator import random import threading +import app_specifics_pb2 import autofill_specifics_pb2 import bookmark_specifics_pb2 import extension_specifics_pb2 @@ -30,6 +31,7 @@ import sync_pb2 # of a program, it is useful to have an enumeration. ALL_TYPES = ( TOP_LEVEL, # The type of the 'Google Chrome' folder. + APPS, AUTOFILL, BOOKMARK, EXTENSIONS, @@ -38,11 +40,12 @@ ALL_TYPES = ( PREFERENCE, SESSION, THEME, - TYPED_URL) = range(10) + TYPED_URL) = range(11) # Given a sync type from ALL_TYPES, find the extension token corresponding # to that datatype. Note that TOP_LEVEL has no such token. SYNC_TYPE_TO_EXTENSION = { + APPS: app_specifics_pb2.app, AUTOFILL: autofill_specifics_pb2.autofill, BOOKMARK: bookmark_specifics_pb2.bookmark, EXTENSIONS: extension_specifics_pb2.extension, @@ -175,6 +178,8 @@ class SyncDataModel(object): parent_tag='google_chrome', sync_type=TYPED_URL), PermanentItem('google_chrome_nigori', name='Nigori', parent_tag='google_chrome', sync_type=NIGORI), + PermanentItem('google_chrome_apps', name='Apps', + parent_tag='google_chrome', sync_type=APPS), ] def __init__(self): -- cgit v1.1