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 "chrome/common/extensions/manifest_tests/chrome_manifest_test.h" | 5 #include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h" |
6 | 6 |
| 7 #include "base/macros.h" |
7 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
8 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
9 #include "extensions/common/error_utils.h" | 10 #include "extensions/common/error_utils.h" |
10 #include "extensions/common/manifest_constants.h" | 11 #include "extensions/common/manifest_constants.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
12 | 13 |
13 using extensions::ErrorUtils; | 14 using extensions::ErrorUtils; |
14 using extensions::Extension; | 15 using extensions::Extension; |
15 | 16 |
16 namespace errors = extensions::manifest_errors; | 17 namespace errors = extensions::manifest_errors; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 EXPECT_TYPE_ERROR); | 50 EXPECT_TYPE_ERROR); |
50 | 51 |
51 LoadAndExpectSuccess("web_urls_has_port.json"); | 52 LoadAndExpectSuccess("web_urls_has_port.json"); |
52 | 53 |
53 scoped_refptr<Extension> extension( | 54 scoped_refptr<Extension> extension( |
54 LoadAndExpectSuccess("web_urls_default.json")); | 55 LoadAndExpectSuccess("web_urls_default.json")); |
55 ASSERT_EQ(1u, extension->web_extent().patterns().size()); | 56 ASSERT_EQ(1u, extension->web_extent().patterns().size()); |
56 EXPECT_EQ("*://www.google.com/*", | 57 EXPECT_EQ("*://www.google.com/*", |
57 extension->web_extent().patterns().begin()->GetAsString()); | 58 extension->web_extent().patterns().begin()->GetAsString()); |
58 } | 59 } |
OLD | NEW |