1 // Copyright 2013 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h" 6 7 namespace extensions { 8 9 TEST_F(ChromeManifestTest, PlatformsKey) { 10 scoped_refptr<Extension> extension = 11 LoadAndExpectSuccess("platforms_key.json"); 12 EXPECT_EQ(0u, extension->install_warnings().size()); 13 } 14 15 TEST_F(ChromeManifestTest, UnrecognizedKeyWarning) { 16 scoped_refptr<Extension> extension = 17 LoadAndExpectWarning("unrecognized_key.json", 18 "Unrecognized manifest key 'unrecognized_key_1'."); 19 } 20 21 } // namespace extensions 22