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 <string> | 5 #include <string> |
6 | 6 |
| 7 #include "base/command_line.h" |
7 #include "chrome/browser/extensions/extension_service.h" | 8 #include "chrome/browser/extensions/extension_service.h" |
8 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
9 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
10 #include "chrome/common/chrome_notification_types.h" | 11 #include "chrome/common/chrome_notification_types.h" |
11 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
12 #include "chrome/common/extensions/extension.h" | 13 #include "chrome/common/extensions/extension.h" |
13 #include "chrome/common/extensions/permissions/permission_set.h" | 14 #include "chrome/common/extensions/permissions/permission_set.h" |
14 #include "chrome/test/base/in_process_browser_test.h" | 15 #include "chrome/test/base/in_process_browser_test.h" |
15 #include "chrome/test/base/ui_test_utils.h" | 16 #include "chrome/test/base/ui_test_utils.h" |
16 #include "content/public/browser/notification_details.h" | 17 #include "content/public/browser/notification_details.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 APIPermission::kNotification)); | 83 APIPermission::kNotification)); |
83 | 84 |
84 ASSERT_EQ(3u, installed_extension_->icons().map().size()); | 85 ASSERT_EQ(3u, installed_extension_->icons().map().size()); |
85 EXPECT_EQ("icons/16.png", installed_extension_->icons().Get( | 86 EXPECT_EQ("icons/16.png", installed_extension_->icons().Get( |
86 16, ExtensionIconSet::MATCH_EXACTLY)); | 87 16, ExtensionIconSet::MATCH_EXACTLY)); |
87 EXPECT_EQ("icons/48.png", installed_extension_->icons().Get( | 88 EXPECT_EQ("icons/48.png", installed_extension_->icons().Get( |
88 48, ExtensionIconSet::MATCH_EXACTLY)); | 89 48, ExtensionIconSet::MATCH_EXACTLY)); |
89 EXPECT_EQ("icons/128.png", installed_extension_->icons().Get( | 90 EXPECT_EQ("icons/128.png", installed_extension_->icons().Get( |
90 128, ExtensionIconSet::MATCH_EXACTLY)); | 91 128, ExtensionIconSet::MATCH_EXACTLY)); |
91 } | 92 } |
OLD | NEW |