| 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/json/json_value_serializer.h" | 5 #include "base/json/json_file_value_serializer.h" |
| 6 #include "base/message_loop.h" | 6 #include "base/message_loop.h" |
| 7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
| 8 #include "chrome/browser/extensions/image_loading_tracker.h" | 8 #include "chrome/browser/extensions/image_loading_tracker.h" |
| 9 #include "chrome/common/chrome_notification_types.h" | 9 #include "chrome/common/chrome_notification_types.h" |
| 10 #include "chrome/common/chrome_paths.h" | 10 #include "chrome/common/chrome_paths.h" |
| 11 #include "chrome/common/extensions/extension.h" | 11 #include "chrome/common/extensions/extension.h" |
| 12 #include "chrome/common/extensions/extension_icon_set.h" | 12 #include "chrome/common/extensions/extension_icon_set.h" |
| 13 #include "chrome/common/extensions/extension_resource.h" | 13 #include "chrome/common/extensions/extension_resource.h" |
| 14 #include "content/public/browser/notification_service.h" | 14 #include "content/public/browser/notification_service.h" |
| 15 #include "content/test/test_browser_thread.h" | 15 #include "content/test/test_browser_thread.h" |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 175 |
| 176 WaitForImageLoad(); | 176 WaitForImageLoad(); |
| 177 | 177 |
| 178 // Even though we deleted the extension, we should still get the image. | 178 // Even though we deleted the extension, we should still get the image. |
| 179 // We should still have gotten the image. | 179 // We should still have gotten the image. |
| 180 EXPECT_EQ(1, image_loaded_count()); | 180 EXPECT_EQ(1, image_loaded_count()); |
| 181 | 181 |
| 182 // Check that the image was loaded. | 182 // Check that the image was loaded. |
| 183 EXPECT_EQ(ExtensionIconSet::EXTENSION_ICON_SMALLISH, image_.width()); | 183 EXPECT_EQ(ExtensionIconSet::EXTENSION_ICON_SMALLISH, image_.width()); |
| 184 } | 184 } |
| OLD | NEW |