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/media_galleries/media_galleries_test_util.h" | 5 #include "chrome/browser/media_galleries/media_galleries_test_util.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/base_paths.h" | 11 #include "base/base_paths.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
16 #include "base/strings/stringprintf.h" | |
17 #include "build/build_config.h" | 16 #include "build/build_config.h" |
18 #include "chrome/browser/extensions/extension_service.h" | 17 #include "chrome/browser/extensions/extension_service.h" |
19 #include "chrome/browser/media_galleries/fileapi/picasa_finder.h" | 18 #include "chrome/browser/media_galleries/fileapi/picasa_finder.h" |
20 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
21 #include "chrome/common/chrome_paths.h" | 20 #include "chrome/common/chrome_paths.h" |
22 #include "components/crx_file/id_util.h" | 21 #include "components/crx_file/id_util.h" |
23 #include "extensions/browser/extension_prefs.h" | 22 #include "extensions/browser/extension_prefs.h" |
24 #include "extensions/browser/extension_system.h" | 23 #include "extensions/browser/extension_system.h" |
25 #include "extensions/common/manifest_constants.h" | 24 #include "extensions/common/manifest_constants.h" |
26 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 217 |
219 base::FilePath MakeMediaGalleriesTestingPath(const std::string& dir) { | 218 base::FilePath MakeMediaGalleriesTestingPath(const std::string& dir) { |
220 #if defined(OS_WIN) | 219 #if defined(OS_WIN) |
221 return base::FilePath(FILE_PATH_LITERAL("C:\\")).AppendASCII(dir); | 220 return base::FilePath(FILE_PATH_LITERAL("C:\\")).AppendASCII(dir); |
222 #elif defined(OS_POSIX) | 221 #elif defined(OS_POSIX) |
223 return base::FilePath(FILE_PATH_LITERAL("/")).Append(dir); | 222 return base::FilePath(FILE_PATH_LITERAL("/")).Append(dir); |
224 #else | 223 #else |
225 NOTREACHED(); | 224 NOTREACHED(); |
226 #endif | 225 #endif |
227 } | 226 } |
OLD | NEW |