OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/features/feature_channel.h" | |
6 #include "chrome/common/extensions/manifest_handlers/automation.h" | 5 #include "chrome/common/extensions/manifest_handlers/automation.h" |
7 #include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h" | 6 #include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h" |
8 #include "chrome/grit/generated_resources.h" | 7 #include "chrome/grit/generated_resources.h" |
9 #include "components/version_info/version_info.h" | 8 #include "components/version_info/version_info.h" |
10 #include "extensions/common/error_utils.h" | 9 #include "extensions/common/error_utils.h" |
| 10 #include "extensions/common/features/feature_channel.h" |
11 #include "extensions/common/manifest_constants.h" | 11 #include "extensions/common/manifest_constants.h" |
12 #include "extensions/common/permissions/permission_message_test_util.h" | 12 #include "extensions/common/permissions/permission_message_test_util.h" |
13 #include "extensions/common/permissions/permissions_data.h" | 13 #include "extensions/common/permissions/permissions_data.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
16 | 16 |
17 namespace extensions { | 17 namespace extensions { |
18 | 18 |
19 class AutomationManifestTest : public ChromeManifestTest { | 19 class AutomationManifestTest : public ChromeManifestTest { |
20 public: | 20 public: |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 | 285 |
286 const AutomationInfo* info = AutomationInfo::Get(extension.get()); | 286 const AutomationInfo* info = AutomationInfo::Get(extension.get()); |
287 ASSERT_TRUE(info); | 287 ASSERT_TRUE(info); |
288 | 288 |
289 EXPECT_FALSE(info->desktop); | 289 EXPECT_FALSE(info->desktop); |
290 EXPECT_TRUE(info->interact); | 290 EXPECT_TRUE(info->interact); |
291 EXPECT_FALSE(info->matches.is_empty()); | 291 EXPECT_FALSE(info->matches.is_empty()); |
292 EXPECT_TRUE(info->matches.MatchesAllURLs()); | 292 EXPECT_TRUE(info->matches.MatchesAllURLs()); |
293 } | 293 } |
294 } // namespace extensions | 294 } // namespace extensions |
OLD | NEW |