OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ui/base/resource/resource_bundle.h" | 5 #include "ui/base/resource/resource_bundle.h" |
6 | 6 |
7 #import <Appkit/Appkit.h> | 7 #import <AppKit/AppKit.h> |
8 | 8 |
9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
10 #include "base/big_endian.h" | 10 #include "base/big_endian.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/memory/ref_counted_memory.h" | 15 #include "base/memory/ref_counted_memory.h" |
16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 // Design pack, any images it contains should override the ones in the default | 193 // Design pack, any images it contains should override the ones in the default |
194 // pack, so if both packs contain the same image, the returned NSImage should | 194 // pack, so if both packs contain the same image, the returned NSImage should |
195 // contain just a single representation. | 195 // contain just a single representation. |
196 NSImage* icon = resource_bundle->GetNativeImageNamed(3).ToNSImage(); | 196 NSImage* icon = resource_bundle->GetNativeImageNamed(3).ToNSImage(); |
197 const unsigned long representations_count = [[icon representations] count]; | 197 const unsigned long representations_count = [[icon representations] count]; |
198 const unsigned long expected_count = 1; | 198 const unsigned long expected_count = 1; |
199 EXPECT_EQ(expected_count, representations_count); | 199 EXPECT_EQ(expected_count, representations_count); |
200 } | 200 } |
201 | 201 |
202 } // namespace ui | 202 } // namespace ui |
OLD | NEW |