Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: extensions/browser/extension_icon_image_unittest.cc

Issue 1549643002: Switch to standard integer types in extensions/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « extensions/browser/extension_icon_image.cc ('k') | extensions/browser/extension_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698