blob: 654235bd7799f7904b5f0489719efd176c3107bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// Copyright (c) 2012 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"
#include "base/command_line.h"
#include "chrome/common/extensions/manifest_handlers/app_isolation_info.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_constants.h"
#include "extensions/common/switches.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace extensions {
namespace errors = manifest_errors;
class IsolatedAppsManifestTest : public ChromeManifestTest {
};
TEST_F(IsolatedAppsManifestTest, IsolatedApps) {
LoadAndExpectWarning(
"isolated_app_valid.json",
"'experimental' requires the 'experimental-extension-apis' "
"command line switch to be enabled.");
CommandLine::ForCurrentProcess()->AppendSwitch(
extensions::switches::kEnableExperimentalExtensionApis);
scoped_refptr<Extension> extension2(
LoadAndExpectSuccess("isolated_app_valid.json"));
EXPECT_TRUE(AppIsolationInfo::HasIsolatedStorage(extension2.get()));
}
} // namespace extensions
|