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

Unified Diff: chrome/installer/mac/app/testing/requestCheck.dtd

Issue 2137743002: Added test files for SystemInfo.m and OmahaXMLRequest.m. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added some copyright content to please the trybot lords Created 4 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/installer/mac/app/testing/SystemInfo_test.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/mac/app/testing/requestCheck.dtd
diff --git a/chrome/installer/mac/app/testing/requestCheck.dtd b/chrome/installer/mac/app/testing/requestCheck.dtd
new file mode 100644
index 0000000000000000000000000000000000000000..7a8571d62a3bda80999093303b76c061d92af2e3
--- /dev/null
+++ b/chrome/installer/mac/app/testing/requestCheck.dtd
@@ -0,0 +1,70 @@
+<!--
+ Copyright 2016 The Chromium Authors. All rights reserved.
+ Use of this source code is governed by a BSD-style license that can be
+ found in the LICENSE file.
+-->
+<!--
+
+ Welcome to a document type declaration (DTD).
+ This is a document that makes sure XML files are correctly formed.
+
+ Below, |request| is implied to be the root element of the XML document, whose
+ children are |os| and |app|.
+-->
+<!ELEMENT request (os, app)>
+<!--
+
+ Below, this indicates that |protocol| is a required attribute of the
+ |request| element; by indicating `NMTOKEN`, we indicate that this attribute
+ must have a value associated with it that does not contain whitespace. `CDATA`
+ would be the more commonly used keyword for content with whitespace.
+-->
+<!ATTLIST request protocol NMTOKEN #REQUIRED>
+<!--
+
+ The |os| element should not have any children and cannot have any content
+ within the tag. (<os/> and <os></os> are allowed, but <os>stuff here!</os> is
+ not a valid element.)
+-->
+<!ELEMENT os EMPTY>
+<!--
+
+ This |platform| attribute is a required attribute of |os|, and its value must
+ be "mac".
+-->
+<!ATTLIST os platform (mac) #REQUIRED>
+<!--
+
+ The |version|, |arch|, and |sp| attributes are optional attributes of |os|. If
+ a request's XML body has the |sp|, it may not need the version or arch; if the
+ |sp| is not included but |version| and |arch| are specified, the XML body is
+ still valid. Unfortunately there is relatively less logic available for
+ attributes, so I currently cannot reject the XML document if there is only
+ either |arch| or |version|.
+-->
+<!ATTLIST os version NMTOKEN #IMPLIED>
+<!ATTLIST os arch NMTOKEN #IMPLIED>
+<!ATTLIST os sp NMTOKEN #IMPLIED>
+<!--
+
+ |app| has only one child, |updatecheck|.
+-->
+<!ELEMENT app (updatecheck)>
+<!--
+
+ The |appid| attribute of the |app| element must have "com.google.Chrome" as
+ its value.
+-->
+<!ATTLIST app appid (com.google.Chrome) #REQUIRED>
+<!--
+
+ The following two attributes are required; their values must not contain
+ whitespace.
+-->
+<!ATTLIST app version NMTOKEN #REQUIRED>
+<!ATTLIST app lang NMTOKEN #REQUIRED>
+<!--
+
+ |updatecheck| must be an empty element.
+-->
+<!ELEMENT updatecheck EMPTY>
« no previous file with comments | « chrome/installer/mac/app/testing/SystemInfo_test.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698