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/shell_integration.h" | 5 #include "apps/shell_integration.h" |
6 | 6 |
7 #include <cstdlib> | 7 #include <cstdlib> |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/files/scoped_temp_dir.h" | 12 #include "base/files/scoped_temp_dir.h" |
13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
14 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
16 #include "base/utf_string_conversions.h" | 16 #include "base/utf_string_conversions.h" |
17 #include "chrome/browser/web_applications/web_app.h" | 17 #include "chrome/browser/web_applications/web_app.h" |
18 #include "chrome/common/chrome_constants.h" | 18 #include "chrome/common/chrome_constants.h" |
19 #include "content/public/test/test_browser_thread.h" | 19 #include "content/public/test/test_browser_thread.h" |
20 #include "googleurl/src/gurl.h" | 20 #include "googleurl/src/gurl.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 | 22 |
23 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 23 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 24 #include "apps/shell_integration_linux.h" |
24 #include "base/environment.h" | 25 #include "base/environment.h" |
25 #include "chrome/browser/shell_integration_linux.h" | |
26 #endif | 26 #endif |
27 | 27 |
28 #define FPL FILE_PATH_LITERAL | 28 #define FPL FILE_PATH_LITERAL |
29 | 29 |
30 using content::BrowserThread; | 30 using content::BrowserThread; |
31 | 31 |
32 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 32 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
33 namespace { | 33 namespace { |
34 | 34 |
35 // Provides mock environment variables values based on a stored map. | 35 // Provides mock environment variables values based on a stored map. |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 web_app::GenerateApplicationNameFromURL(GURL(test_cases[i].url)), | 408 web_app::GenerateApplicationNameFromURL(GURL(test_cases[i].url)), |
409 GURL(test_cases[i].url), | 409 GURL(test_cases[i].url), |
410 "", | 410 "", |
411 base::FilePath(), | 411 base::FilePath(), |
412 ASCIIToUTF16(test_cases[i].title), | 412 ASCIIToUTF16(test_cases[i].title), |
413 test_cases[i].icon_name, | 413 test_cases[i].icon_name, |
414 base::FilePath())); | 414 base::FilePath())); |
415 } | 415 } |
416 } | 416 } |
417 #endif | 417 #endif |
OLD | NEW |