blob: 1e9a34ed0a43267b548ef89ca239d99e3bcd27a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright 2013 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.
#include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h"
namespace extensions {
TEST_F(ChromeManifestTest, PlatformsKey) {
scoped_refptr<Extension> extension =
LoadAndExpectSuccess("platforms_key.json");
EXPECT_EQ(0u, extension->install_warnings().size());
}
TEST_F(ChromeManifestTest, UnrecognizedKeyWarning) {
scoped_refptr<Extension> extension =
LoadAndExpectWarning("unrecognized_key.json",
"Unrecognized manifest key 'unrecognized_key_1'.");
}
} // namespace extensions
|