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

Unified Diff: native_client_sdk/src/build_tools/tests/update_manifest_test.py

Issue 8879042: Add a --archive-id option to update_manifest.py. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | « native_client_sdk/src/build_tools/sdk_tools/update_manifest.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/build_tools/tests/update_manifest_test.py
diff --git a/native_client_sdk/src/build_tools/tests/update_manifest_test.py b/native_client_sdk/src/build_tools/tests/update_manifest_test.py
index 1022323a8c0a570d1c1ce4b73a45bb03f4fa20a9..0e33207f2569d82354ef65cb1f921930054fc2fb 100755
--- a/native_client_sdk/src/build_tools/tests/update_manifest_test.py
+++ b/native_client_sdk/src/build_tools/tests/update_manifest_test.py
@@ -62,6 +62,7 @@ def GetHTTPHandler(path, length=None):
class FakeOptions(object):
''' Just a place holder for options '''
def __init__(self):
+ self.archive_id = None
self.bundle_desc_url = None
self.bundle_name = None
self.bundle_version = None
@@ -338,6 +339,18 @@ class TestUpdateManifest(unittest.TestCase):
manifest_object.HandleBundles()
manifest_object.UpdateWithOptions()
+ # Verify that the bundle can be found via the --archive-id option.
+ options = FakeOptions()
+ options.archive_id = 'pepper_1_0'
+ options.bundle_name = 'pepper_phony'
+ options.bundle_version = -1
+ options.bundle_revision = -1
+ options.stability = 'dev'
+ options.recommended = 'no'
+ manifest_object = update_manifest.UpdateSDKManifestFile(options)
+ manifest_object.HandleBundles()
+ manifest_object.UpdateWithOptions()
+
def main():
suite = unittest.TestLoader().loadTestsFromTestCase(TestUpdateManifest)
« no previous file with comments | « native_client_sdk/src/build_tools/sdk_tools/update_manifest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698