| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/browser/chromeos/extensions/device_local_account_management_pol
icy_provider.h" | 5 #include "chrome/browser/chromeos/extensions/device_local_account_management_pol
icy_provider.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/values.h" | 11 #include "base/values.h" |
| 12 #include "chrome/common/extensions/extension.h" | 12 #include "extensions/common/extension.h" |
| 13 #include "extensions/common/manifest.h" | 13 #include "extensions/common/manifest.h" |
| 14 #include "extensions/common/manifest_constants.h" | 14 #include "extensions/common/manifest_constants.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 16 |
| 17 namespace chromeos { | 17 namespace chromeos { |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 const char kWhitelistedId[] = "cbkkbcmdlboombapidmoeolnmdacpkch"; | 21 const char kWhitelistedId[] = "cbkkbcmdlboombapidmoeolnmdacpkch"; |
| 22 | 22 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 // types of device-local accounts cannot be installed in a single-app kiosk | 115 // types of device-local accounts cannot be installed in a single-app kiosk |
| 116 // session. | 116 // session. |
| 117 extension = CreateExtension(kWhitelistedId); | 117 extension = CreateExtension(kWhitelistedId); |
| 118 ASSERT_TRUE(extension); | 118 ASSERT_TRUE(extension); |
| 119 EXPECT_FALSE(provider.UserMayLoad(extension.get(), &error)); | 119 EXPECT_FALSE(provider.UserMayLoad(extension.get(), &error)); |
| 120 EXPECT_NE(string16(), error); | 120 EXPECT_NE(string16(), error); |
| 121 error.clear(); | 121 error.clear(); |
| 122 } | 122 } |
| 123 | 123 |
| 124 } // namespace chromeos | 124 } // namespace chromeos |
| OLD | NEW |