OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/shell_integration_linux.h" | 5 #include "chrome/browser/shell_integration_linux.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 #include <cstdlib> | 10 #include <cstdlib> |
9 #include <map> | 11 #include <map> |
10 #include <vector> | 12 #include <vector> |
11 | 13 |
12 #include "base/base_paths.h" | 14 #include "base/base_paths.h" |
13 #include "base/command_line.h" | 15 #include "base/command_line.h" |
14 #include "base/environment.h" | 16 #include "base/environment.h" |
15 #include "base/files/file_path.h" | 17 #include "base/files/file_path.h" |
16 #include "base/files/file_util.h" | 18 #include "base/files/file_util.h" |
17 #include "base/files/scoped_temp_dir.h" | 19 #include "base/files/scoped_temp_dir.h" |
| 20 #include "base/macros.h" |
18 #include "base/message_loop/message_loop.h" | 21 #include "base/message_loop/message_loop.h" |
19 #include "base/stl_util.h" | 22 #include "base/stl_util.h" |
20 #include "base/strings/string_util.h" | 23 #include "base/strings/string_util.h" |
21 #include "base/strings/utf_string_conversions.h" | 24 #include "base/strings/utf_string_conversions.h" |
22 #include "base/test/scoped_path_override.h" | 25 #include "base/test/scoped_path_override.h" |
23 #include "chrome/common/chrome_constants.h" | 26 #include "chrome/common/chrome_constants.h" |
24 #include "content/public/test/test_browser_thread.h" | 27 #include "content/public/test/test_browser_thread.h" |
25 #include "testing/gmock/include/gmock/gmock.h" | 28 #include "testing/gmock/include/gmock/gmock.h" |
26 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/include/gtest/gtest.h" |
27 #include "url/gurl.h" | 30 #include "url/gurl.h" |
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 | 648 |
646 for (size_t i = 0; i < arraysize(test_cases); i++) { | 649 for (size_t i = 0; i < arraysize(test_cases); i++) { |
647 SCOPED_TRACE(i); | 650 SCOPED_TRACE(i); |
648 EXPECT_EQ(test_cases[i].expected_output, | 651 EXPECT_EQ(test_cases[i].expected_output, |
649 GetDirectoryFileContents(base::ASCIIToUTF16(test_cases[i].title), | 652 GetDirectoryFileContents(base::ASCIIToUTF16(test_cases[i].title), |
650 test_cases[i].icon_name)); | 653 test_cases[i].icon_name)); |
651 } | 654 } |
652 } | 655 } |
653 | 656 |
654 } // namespace shell_integration_linux | 657 } // namespace shell_integration_linux |
OLD | NEW |