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 "extensions/common/extension_api.h" | 5 #include "extensions/common/extension_api.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/json/json_reader.h" | 12 #include "base/json/json_reader.h" |
13 #include "base/json/json_writer.h" | 13 #include "base/json/json_writer.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/path_service.h" | 16 #include "base/path_service.h" |
17 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
18 #include "base/values.h" | 18 #include "base/values.h" |
19 #include "chrome/common/chrome_paths.h" | 19 #include "chrome/common/chrome_paths.h" |
20 #include "chrome/common/extensions/features/api_feature.h" | |
21 #include "chrome/common/extensions/features/base_feature_provider.h" | |
22 #include "chrome/common/extensions/features/simple_feature.h" | |
23 #include "extensions/common/extension.h" | 20 #include "extensions/common/extension.h" |
24 #include "extensions/common/extension_builder.h" | 21 #include "extensions/common/extension_builder.h" |
| 22 #include "extensions/common/features/api_feature.h" |
| 23 #include "extensions/common/features/base_feature_provider.h" |
| 24 #include "extensions/common/features/simple_feature.h" |
25 #include "extensions/common/manifest.h" | 25 #include "extensions/common/manifest.h" |
26 #include "extensions/common/manifest_constants.h" | 26 #include "extensions/common/manifest_constants.h" |
27 #include "extensions/common/test_util.h" | 27 #include "extensions/common/test_util.h" |
28 #include "extensions/common/value_builder.h" | 28 #include "extensions/common/value_builder.h" |
29 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/include/gtest/gtest.h" |
30 | 30 |
31 namespace extensions { | 31 namespace extensions { |
32 | 32 |
33 using test_util::BuildExtension; | 33 using test_util::BuildExtension; |
34 | 34 |
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 extension.get(), | 890 extension.get(), |
891 Feature::BLESSED_EXTENSION_CONTEXT, | 891 Feature::BLESSED_EXTENSION_CONTEXT, |
892 GURL()).is_available()); | 892 GURL()).is_available()); |
893 EXPECT_FALSE(extension_api->IsAvailable("pageAction", | 893 EXPECT_FALSE(extension_api->IsAvailable("pageAction", |
894 extension.get(), | 894 extension.get(), |
895 Feature::BLESSED_EXTENSION_CONTEXT, | 895 Feature::BLESSED_EXTENSION_CONTEXT, |
896 GURL()).is_available()); | 896 GURL()).is_available()); |
897 } | 897 } |
898 | 898 |
899 } // namespace extensions | 899 } // namespace extensions |
OLD | NEW |