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

Side by Side Diff: chrome/common/extensions/manifest_tests/extension_manifests_dummy_unittest.cc

Issue 574173002: Reland: Refactor ExtensionManifestTest to allow usage in src/extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (manifest-test) add ScopedChannel Created 6 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h" 5 #include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h"
6 6
7 namespace extensions { 7 namespace extensions {
8 8
9 TEST_F(ExtensionManifestTest, PlatformsKey) { 9 TEST_F(ChromeManifestTest, PlatformsKey) {
10 scoped_refptr<Extension> extension = 10 scoped_refptr<Extension> extension =
11 LoadAndExpectSuccess("platforms_key.json"); 11 LoadAndExpectSuccess("platforms_key.json");
12 EXPECT_EQ(0u, extension->install_warnings().size()); 12 EXPECT_EQ(0u, extension->install_warnings().size());
13 } 13 }
14 14
15 TEST_F(ExtensionManifestTest, UnrecognizedKeyWarning) { 15 TEST_F(ChromeManifestTest, UnrecognizedKeyWarning) {
16 scoped_refptr<Extension> extension = 16 scoped_refptr<Extension> extension =
17 LoadAndExpectWarning("unrecognized_key.json", 17 LoadAndExpectWarning("unrecognized_key.json",
18 "Unrecognized manifest key 'unrecognized_key_1'."); 18 "Unrecognized manifest key 'unrecognized_key_1'.");
19 } 19 }
20 20
21 } // namespace extensions 21 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698