Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 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 "extensions/browser/extension_util.h" | |
| 6 #include "extensions/common/extension.h" | |
| 7 #include "extensions/common/manifest_test.h" | |
| 8 | |
| 9 namespace extensions { | |
| 10 | |
| 11 using IncognitoManifestTest = ManifestTest; | |
| 12 | |
| 13 TEST_F(IncognitoManifestTest, IncognitoNotAllowed) { | |
| 14 scoped_refptr<Extension> extension( | |
| 15 LoadAndExpectSuccess("incognito_not_allowed.json")); | |
|
not at google - send to devlin
2015/09/18 21:49:20
actually can you also make assertions about the In
Not at Google. Contact bengr
2015/09/18 22:07:33
Done.
| |
| 16 EXPECT_FALSE(util::CanBeIncognitoEnabled(extension.get())); | |
| 17 } | |
| 18 | |
| 19 TEST_F(IncognitoManifestTest, IncognitoSpanning) { | |
| 20 scoped_refptr<Extension> extension( | |
| 21 LoadAndExpectSuccess("incognito_spanning.json")); | |
| 22 EXPECT_TRUE(util::CanBeIncognitoEnabled(extension.get())); | |
| 23 } | |
| 24 | |
| 25 TEST_F(IncognitoManifestTest, IncognitoSplit) { | |
| 26 scoped_refptr<Extension> extension( | |
| 27 LoadAndExpectSuccess("incognito_split.json")); | |
| 28 EXPECT_TRUE(util::CanBeIncognitoEnabled(extension.get())); | |
| 29 } | |
| 30 | |
| 31 TEST_F(IncognitoManifestTest, IncognitoUnspecified) { | |
| 32 scoped_refptr<Extension> extension(LoadAndExpectSuccess("minimal.json")); | |
| 33 EXPECT_TRUE(util::CanBeIncognitoEnabled(extension.get())); | |
| 34 } | |
| 35 | |
| 36 } // namespace extensions | |
| OLD | NEW |