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 "extensions/browser/extension_icon_image.h" | 5 #include "extensions/browser/extension_icon_image.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/json/json_file_value_serializer.h" | 9 #include "base/json/json_file_value_serializer.h" |
| 10 #include "base/macros.h" |
10 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
11 #include "base/path_service.h" | 12 #include "base/path_service.h" |
12 #include "content/public/browser/notification_service.h" | 13 #include "content/public/browser/notification_service.h" |
13 #include "content/public/test/test_browser_context.h" | 14 #include "content/public/test/test_browser_context.h" |
14 #include "content/public/test/test_browser_thread.h" | 15 #include "content/public/test/test_browser_thread.h" |
15 #include "extensions/browser/extensions_test.h" | 16 #include "extensions/browser/extensions_test.h" |
16 #include "extensions/browser/image_loader.h" | 17 #include "extensions/browser/image_loader.h" |
17 #include "extensions/browser/test_image_loader.h" | 18 #include "extensions/browser/test_image_loader.h" |
18 #include "extensions/common/extension.h" | 19 #include "extensions/common/extension.h" |
19 #include "extensions/common/extension_paths.h" | 20 #include "extensions/common/extension_paths.h" |
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 // because image storage is shared, so when we created one from the first | 544 // because image storage is shared, so when we created one from the first |
544 // image, all other images should also have that representation... | 545 // image, all other images should also have that representation... |
545 gfx::Image image2 = icon_image->image(); | 546 gfx::Image image2 = icon_image->image(); |
546 EXPECT_EQ(image_as_png.get(), image2.As1xPNGBytes().get()); | 547 EXPECT_EQ(image_as_png.get(), image2.As1xPNGBytes().get()); |
547 | 548 |
548 // ...even images that were copied before the representation was constructed. | 549 // ...even images that were copied before the representation was constructed. |
549 EXPECT_EQ(image_as_png.get(), prior_image.As1xPNGBytes().get()); | 550 EXPECT_EQ(image_as_png.get(), prior_image.As1xPNGBytes().get()); |
550 } | 551 } |
551 | 552 |
552 } // namespace extensions | 553 } // namespace extensions |
OLD | NEW |