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 "chrome/browser/themes/browser_theme_pack.h" | 5 #include "chrome/browser/themes/browser_theme_pack.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
8 #include "base/json/json_file_value_serializer.h" | 10 #include "base/json/json_file_value_serializer.h" |
9 #include "base/json/json_reader.h" | 11 #include "base/json/json_reader.h" |
10 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
11 #include "base/path_service.h" | 13 #include "base/path_service.h" |
12 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "build/build_config.h" |
13 #include "chrome/browser/themes/theme_properties.h" | 16 #include "chrome/browser/themes/theme_properties.h" |
14 #include "chrome/common/chrome_paths.h" | 17 #include "chrome/common/chrome_paths.h" |
15 #include "content/public/test/test_browser_thread.h" | 18 #include "content/public/test/test_browser_thread.h" |
16 #include "grit/theme_resources.h" | 19 #include "grit/theme_resources.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
18 #include "ui/gfx/color_utils.h" | 21 #include "ui/gfx/color_utils.h" |
19 #include "ui/gfx/image/image.h" | 22 #include "ui/gfx/image/image.h" |
20 #include "ui/gfx/image/image_skia.h" | 23 #include "ui/gfx/image/image_skia.h" |
21 #include "ui/gfx/image/image_skia_rep.h" | 24 #include "ui/gfx/image/image_skia_rep.h" |
22 | 25 |
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 } | 625 } |
623 | 626 |
624 // Part 2: Try to read back the data pack that we just wrote to disk. | 627 // Part 2: Try to read back the data pack that we just wrote to disk. |
625 { | 628 { |
626 scoped_refptr<BrowserThemePack> pack = | 629 scoped_refptr<BrowserThemePack> pack = |
627 BrowserThemePack::BuildFromDataPack(file, "gllekhaobjnhgeag"); | 630 BrowserThemePack::BuildFromDataPack(file, "gllekhaobjnhgeag"); |
628 ASSERT_TRUE(pack.get()); | 631 ASSERT_TRUE(pack.get()); |
629 VerifyHiDpiTheme(pack.get()); | 632 VerifyHiDpiTheme(pack.get()); |
630 } | 633 } |
631 } | 634 } |
OLD | NEW |