Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5424)

Unified Diff: chrome/common/extensions/docs/server2/manifest_data_source_test.py

Issue 344453003: Docserver: separate models for apps and extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase/Add comment Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/server2/manifest_data_source_test.py
diff --git a/chrome/common/extensions/docs/server2/manifest_data_source_test.py b/chrome/common/extensions/docs/server2/manifest_data_source_test.py
index 9b279625ce734b90aca7c1f6a9a2a31b32806be5..2ed7a97a186107657cb9d4e8a713f1b7c23bada1 100755
--- a/chrome/common/extensions/docs/server2/manifest_data_source_test.py
+++ b/chrome/common/extensions/docs/server2/manifest_data_source_test.py
@@ -249,10 +249,6 @@ class ManifestDataSourceTest(unittest.TestCase):
'platforms': ['apps'],
'annotations': ['important!'],
'level': 'recommended'
- },
- 'doc2': {
- 'name': 'doc2',
- 'platforms': ['extensions']
}
}
@@ -279,13 +275,17 @@ class ManifestDataSourceTest(unittest.TestCase):
}
]
+ class FakePlatformBundle(object):
+ def GetFeaturesBundle(self, platform):
+ return FakeFeaturesBundle()
+
class FakeFeaturesBundle(object):
def GetManifestFeatures(self):
return Future(value=manifest_features)
class FakeServerInstance(object):
def __init__(self):
- self.features_bundle = FakeFeaturesBundle()
+ self.platform_bundle = FakePlatformBundle()
self.object_store_creator = ObjectStoreCreator.ForTest()
mds = manifest_data_source.ManifestDataSource(FakeServerInstance(), None)
« no previous file with comments | « chrome/common/extensions/docs/server2/manifest_data_source.py ('k') | chrome/common/extensions/docs/server2/path_util.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698