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

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

Issue 23744004: Move the rest of extension_manifest_constants to top-level extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/json/json_file_value_serializer.h" 6 #include "base/json/json_file_value_serializer.h"
7 #include "base/memory/linked_ptr.h" 7 #include "base/memory/linked_ptr.h"
8 #include "chrome/common/chrome_switches.h" 8 #include "chrome/common/chrome_switches.h"
9 #include "chrome/common/extensions/csp_handler.h" 9 #include "chrome/common/extensions/csp_handler.h"
10 #include "chrome/common/extensions/extension_manifest_constants.h"
11 #include "chrome/common/extensions/incognito_handler.h" 10 #include "chrome/common/extensions/incognito_handler.h"
12 #include "chrome/common/extensions/manifest_handlers/app_isolation_info.h" 11 #include "chrome/common/extensions/manifest_handlers/app_isolation_info.h"
13 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h" 12 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h"
14 #include "extensions/common/error_utils.h" 13 #include "extensions/common/error_utils.h"
14 #include "extensions/common/manifest_constants.h"
15 #include "extensions/common/switches.h" 15 #include "extensions/common/switches.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 namespace errors = extension_manifest_errors; 18 namespace extensions {
19 19
20 namespace extensions { 20 namespace errors = manifest_errors;
21 21
22 class PlatformAppsManifestTest : public ExtensionManifestTest { 22 class PlatformAppsManifestTest : public ExtensionManifestTest {
23 }; 23 };
24 24
25 TEST_F(PlatformAppsManifestTest, PlatformApps) { 25 TEST_F(PlatformAppsManifestTest, PlatformApps) {
26 scoped_refptr<Extension> extension = 26 scoped_refptr<Extension> extension =
27 LoadAndExpectSuccess("init_valid_platform_app.json"); 27 LoadAndExpectSuccess("init_valid_platform_app.json");
28 EXPECT_TRUE(AppIsolationInfo::HasIsolatedStorage(extension.get())); 28 EXPECT_TRUE(AppIsolationInfo::HasIsolatedStorage(extension.get()));
29 EXPECT_TRUE(IncognitoInfo::IsSplitMode(extension.get())); 29 EXPECT_TRUE(IncognitoInfo::IsSplitMode(extension.get()));
30 30
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 // Now try again with the experimental flag set. 139 // Now try again with the experimental flag set.
140 CommandLine::ForCurrentProcess()->AppendSwitch( 140 CommandLine::ForCurrentProcess()->AppendSwitch(
141 switches::kEnableExperimentalExtensionApis); 141 switches::kEnableExperimentalExtensionApis);
142 for (size_t i = 0; i < arraysize(kPlatformAppExperimentalApis); ++i) { 142 for (size_t i = 0; i < arraysize(kPlatformAppExperimentalApis); ++i) {
143 LoadAndExpectSuccess(Manifest(manifests[i].get(), "")); 143 LoadAndExpectSuccess(Manifest(manifests[i].get(), ""));
144 } 144 }
145 } 145 }
146 146
147 } // namespace extensions 147 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698