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

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

Issue 83843002: Move ManifestHandlers to extensions/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: s/handler/info Created 7 years 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 "chrome/common/extensions/manifest_handlers/offline_enabled_info.h"
6 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h" 5 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h"
7 #include "extensions/common/extension.h" 6 #include "extensions/common/extension.h"
8 #include "extensions/common/manifest_constants.h" 7 #include "extensions/common/manifest_constants.h"
8 #include "extensions/common/manifest_handlers/offline_enabled_info.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 12
13 namespace errors = manifest_errors; 13 namespace errors = manifest_errors;
14 14
15 class ExtensionManifestOfflineEnabledTest : public ExtensionManifestTest { 15 class ExtensionManifestOfflineEnabledTest : public ExtensionManifestTest {
16 }; 16 };
17 17
18 TEST_F(ExtensionManifestOfflineEnabledTest, OfflineEnabled) { 18 TEST_F(ExtensionManifestOfflineEnabledTest, OfflineEnabled) {
(...skipping 13 matching lines...) Expand all
32 EXPECT_FALSE(OfflineEnabledInfo::IsOfflineEnabled(extension_3.get())); 32 EXPECT_FALSE(OfflineEnabledInfo::IsOfflineEnabled(extension_3.get()));
33 scoped_refptr<Extension> extension_4( 33 scoped_refptr<Extension> extension_4(
34 LoadAndExpectSuccess("offline_enabled_hosted_app.json")); 34 LoadAndExpectSuccess("offline_enabled_hosted_app.json"));
35 EXPECT_TRUE(OfflineEnabledInfo::IsOfflineEnabled(extension_4.get())); 35 EXPECT_TRUE(OfflineEnabledInfo::IsOfflineEnabled(extension_4.get()));
36 scoped_refptr<Extension> extension_5( 36 scoped_refptr<Extension> extension_5(
37 LoadAndExpectSuccess("offline_default_platform_app.json")); 37 LoadAndExpectSuccess("offline_default_platform_app.json"));
38 EXPECT_TRUE(OfflineEnabledInfo::IsOfflineEnabled(extension_5.get())); 38 EXPECT_TRUE(OfflineEnabledInfo::IsOfflineEnabled(extension_5.get()));
39 } 39 }
40 40
41 } // namespace extensions 41 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698