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

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

Issue 181233007: kiosk: Fix network check skipped regression. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: offline_enabled default value from webview permission Created 6 years, 9 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 | Annotate | Revision Log
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_tests/extension_manifest_test.h" 5 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h"
6 #include "extensions/common/extension.h" 6 #include "extensions/common/extension.h"
7 #include "extensions/common/manifest_constants.h" 7 #include "extensions/common/manifest_constants.h"
8 #include "extensions/common/manifest_handlers/offline_enabled_info.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
(...skipping 18 matching lines...) Expand all
29 EXPECT_FALSE(OfflineEnabledInfo::IsOfflineEnabled(extension_2.get())); 29 EXPECT_FALSE(OfflineEnabledInfo::IsOfflineEnabled(extension_2.get()));
30 scoped_refptr<Extension> extension_3( 30 scoped_refptr<Extension> extension_3(
31 LoadAndExpectSuccess("offline_default_packaged_app.json")); 31 LoadAndExpectSuccess("offline_default_packaged_app.json"));
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 scoped_refptr<Extension> extension_6(
40 LoadAndExpectSuccess("offline_default_platform_app_with_webview.json"));
41 EXPECT_FALSE(OfflineEnabledInfo::IsOfflineEnabled(extension_6.get()));
39 } 42 }
40 43
41 } // namespace extensions 44 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698