summaryrefslogtreecommitdiffstats
path: root/tools/json_schema_compiler/test
diff options
context:
space:
mode:
authorjoaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-06 10:50:56 +0000
committerjoaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-06 10:50:56 +0000
commitfe857a052b8e3528f83fc80ecc19ed7c0f29db47 (patch)
tree374f738d8676512add26cbb21f60a4f8e2bc2837 /tools/json_schema_compiler/test
parentb560539c1fabaf41e75050e93cf3474d6c30cd8c (diff)
downloadchromium_src-fe857a052b8e3528f83fc80ecc19ed7c0f29db47.zip
chromium_src-fe857a052b8e3528f83fc80ecc19ed7c0f29db47.tar.gz
chromium_src-fe857a052b8e3528f83fc80ecc19ed7c0f29db47.tar.bz2
Added the "unmodifiable" property to chrome.bookmarks.BookmarkTreeNode.
This optional property indicates the reason why this BookmarkTreeNode can't be modified by the user nor the extension. For now the only value defined is "managed", indicating that this bookmark was configured by the system administrator. If the property is not present then the bookmark is modifiable (default). BUG=49598 R=kalman@chromium.org Review URL: https://codereview.chromium.org/320473002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275387 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/json_schema_compiler/test')
-rw-r--r--tools/json_schema_compiler/test/enums_unittest.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/json_schema_compiler/test/enums_unittest.cc b/tools/json_schema_compiler/test/enums_unittest.cc
index 0a2d5d1..9bbadd9 100644
--- a/tools/json_schema_compiler/test/enums_unittest.cc
+++ b/tools/json_schema_compiler/test/enums_unittest.cc
@@ -42,6 +42,11 @@ TEST(JsonSchemaCompilerEnumsTest, EnumsAsTypes) {
}
{
HasEnumeration enumeration;
+ EXPECT_EQ(ENUMERATION_NONE, enumeration.enumeration);
+ EXPECT_EQ(ENUMERATION_NONE, enumeration.optional_enumeration);
+ }
+ {
+ HasEnumeration enumeration;
base::DictionaryValue value;
ASSERT_FALSE(HasEnumeration::Populate(value, &enumeration));