| OLD | NEW |
| 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/test/values_test_util.h" | 5 #include "base/test/values_test_util.h" |
| 6 #include "chrome/common/extensions/api/identity/oauth2_manifest_handler.h" | 6 #include "chrome/common/extensions/api/identity/oauth2_manifest_handler.h" |
| 7 #include "chrome/common/extensions/extension_manifest_constants.h" | 7 #include "chrome/common/extensions/extension_manifest_constants.h" |
| 8 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h" | 8 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| 11 namespace keys = extension_manifest_keys; | 11 namespace keys = extensions::manifest_keys; |
| 12 namespace errors = extension_manifest_errors; | 12 namespace errors = extension_manifest_errors; |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 // Produces extension ID = "mdbihdcgjmagbcapkhhkjbbdlkflmbfo". | 16 // Produces extension ID = "mdbihdcgjmagbcapkhhkjbbdlkflmbfo". |
| 17 const char kExtensionKey[] = | 17 const char kExtensionKey[] = |
| 18 "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCV9PlZjcTIXfnlB3HXo50OlM/CnIq0y7jm" | 18 "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCV9PlZjcTIXfnlB3HXo50OlM/CnIq0y7jm" |
| 19 "KfPVyStaWsmFB7NaVnqUXoGb9swBDfVnZ6BrupwnxL76TWEJPo+KQMJ6uz0PPdJWi2jQfZiG" | 19 "KfPVyStaWsmFB7NaVnqUXoGb9swBDfVnZ6BrupwnxL76TWEJPo+KQMJ6uz0PPdJWi2jQfZiG" |
| 20 "iheDiKH5Gv+dVd67qf7ly8QWW0o8qmFpqBZQpksm1hOGbfsupv9W4c42tMEIicDMLQIDAQAB"; | 20 "iheDiKH5Gv+dVd67qf7ly8QWW0o8qmFpqBZQpksm1hOGbfsupv9W4c42tMEIicDMLQIDAQAB"; |
| 21 const char kAutoApproveNotAllowedWarning[] = | 21 const char kAutoApproveNotAllowedWarning[] = |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 TEST_F(OAuth2ManifestTest, ComponentWithStandardClientId) { | 313 TEST_F(OAuth2ManifestTest, ComponentWithStandardClientId) { |
| 314 base::DictionaryValue* ext_manifest = | 314 base::DictionaryValue* ext_manifest = |
| 315 CreateManifest(AUTO_APPROVE_TRUE, true, CLIENT_ID_DEFAULT); | 315 CreateManifest(AUTO_APPROVE_TRUE, true, CLIENT_ID_DEFAULT); |
| 316 Manifest manifest(ext_manifest, "test"); | 316 Manifest manifest(ext_manifest, "test"); |
| 317 scoped_refptr<extensions::Extension> extension = | 317 scoped_refptr<extensions::Extension> extension = |
| 318 LoadAndExpectSuccess(manifest, extensions::Manifest::COMPONENT); | 318 LoadAndExpectSuccess(manifest, extensions::Manifest::COMPONENT); |
| 319 EXPECT_EQ("client1", OAuth2Info::GetOAuth2Info(extension.get()).client_id); | 319 EXPECT_EQ("client1", OAuth2Info::GetOAuth2Info(extension.get()).client_id); |
| 320 } | 320 } |
| 321 | 321 |
| 322 } // namespace extensions | 322 } // namespace extensions |
| OLD | NEW |