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

Unified Diff: chrome/common/extensions/docs/server2/test_data/object_level_availability/tabs.py

Issue 385703005: Docserver: Modify doc inlining so all relevant data is present in availability_finder.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final nit Created 6 years, 5 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
« no previous file with comments | « chrome/common/extensions/docs/server2/schema_util_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/server2/test_data/object_level_availability/tabs.py
diff --git a/chrome/common/extensions/docs/server2/test_data/object_level_availability/tabs.py b/chrome/common/extensions/docs/server2/test_data/object_level_availability/tabs.py
index 158dea71db8c13b6a579a6bb1bbcf542b365299f..f5456d748d87dcba500e6af16120fbd1c9ac9b2d 100644
--- a/chrome/common/extensions/docs/server2/test_data/object_level_availability/tabs.py
+++ b/chrome/common/extensions/docs/server2/test_data/object_level_availability/tabs.py
@@ -4,9 +4,32 @@
import json
-from extensions_paths import CHROME_EXTENSIONS
+from extensions_paths import CHROME_EXTENSIONS, SERVER2
from test_file_system import MoveAllTo
+from test_util import ReadFile
+FAKE_TABS_IDL = '\n'.join([
+ '// Copyleft stuff.',
+ '',
+ '// Some description here.',
+ 'namespace fakeTabs {',
+ ' dictionary WasImplicitlyInlinedType {};',
+ ' interface Functions {',
+ ' static void myFunc(WasImplicitlyInlinedType arg);',
+ ' static void anotherFunc(WasImplicitlyInlinedType arg);',
+ ' };',
+ '};'])
+
+FAKE_TABS_WITH_INLINING_IDL = '\n'.join([
+ '// Copyleft stuff.',
+ '',
+ '// Some description here.',
+ 'namespace fakeTabs {',
+ ' dictionary WasImplicitlyInlinedType {};',
+ ' interface Functions {',
+ ' static void myFunc(WasImplicitlyInlinedType arg);',
+ ' };',
+ '};'])
TABS_SCHEMA_BRANCHES = MoveAllTo(CHROME_EXTENSIONS, {
'trunk': {
@@ -22,6 +45,7 @@ TABS_SCHEMA_BRANCHES = MoveAllTo(CHROME_EXTENSIONS, {
'_api_features.json': '{}',
'_manifest_features.json': '{}',
'_permission_features.json': '{}',
+ 'fake_tabs.idl': FAKE_TABS_IDL,
'tabs.json': json.dumps([{
'namespace': 'tabs',
'types': [
@@ -168,6 +192,7 @@ TABS_SCHEMA_BRANCHES = MoveAllTo(CHROME_EXTENSIONS, {
'_api_features.json': "{}",
'_manifest_features.json': "{}",
'_permission_features.json': "{}",
+ 'fake_tabs.idl': FAKE_TABS_IDL,
'tabs.json': json.dumps([{
'namespace': 'tabs',
'types': [
@@ -265,6 +290,7 @@ TABS_SCHEMA_BRANCHES = MoveAllTo(CHROME_EXTENSIONS, {
'_api_features.json': "{}",
'_manifest_features.json': "{}",
'_permission_features.json': "{}",
+ 'fake_tabs.idl': FAKE_TABS_IDL,
'tabs.json': json.dumps([{
'namespace': 'tabs',
'types': [
@@ -357,6 +383,7 @@ TABS_SCHEMA_BRANCHES = MoveAllTo(CHROME_EXTENSIONS, {
'api': {
'_manifest_features.json': "{}",
'_permission_features.json': "{}",
+ 'fake_tabs.idl': FAKE_TABS_IDL,
'tabs.json': json.dumps([{
'namespace': 'tabs',
'types': [
@@ -435,6 +462,7 @@ TABS_SCHEMA_BRANCHES = MoveAllTo(CHROME_EXTENSIONS, {
'api': {
'_manifest_features.json': "{}",
'_permission_features.json': "{}",
+ 'fake_tabs.idl': FAKE_TABS_WITH_INLINING_IDL,
'tabs.json': json.dumps([{
'namespace': 'tabs',
'types': [
« no previous file with comments | « chrome/common/extensions/docs/server2/schema_util_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698