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/test/mini_installer_test/installer_path_provider.h" | 5 #include "chrome/test/mini_installer_test/installer_path_provider.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/files/file_enumerator.h" | 11 #include "base/files/file_enumerator.h" |
12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
13 #include "base/process_util.h" | 13 #include "base/process_util.h" |
14 #include "base/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "base/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
| 16 #include "chrome/test/mini_installer_test/installer_test_util.h" |
16 #include "chrome/test/mini_installer_test/mini_installer_test_constants.h" | 17 #include "chrome/test/mini_installer_test/mini_installer_test_constants.h" |
17 #include "chrome/test/mini_installer_test/installer_test_util.h" | |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 struct FilePathInfo { | 22 struct FilePathInfo { |
23 base::FileEnumerator::FileInfo info; | 23 base::FileEnumerator::FileInfo info; |
24 base::FilePath path; | 24 base::FilePath path; |
25 }; | 25 }; |
26 | 26 |
27 bool CompareDate(const FilePathInfo& a, const FilePathInfo& b) { | 27 bool CompareDate(const FilePathInfo& a, const FilePathInfo& b) { |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 | 229 |
230 std::string InstallerPathProvider::GetCurrentBuild() { | 230 std::string InstallerPathProvider::GetCurrentBuild() { |
231 return current_build_; | 231 return current_build_; |
232 } | 232 } |
233 | 233 |
234 std::string InstallerPathProvider::GetPreviousBuild() { | 234 std::string InstallerPathProvider::GetPreviousBuild() { |
235 return previous_build_; | 235 return previous_build_; |
236 } | 236 } |
237 | 237 |
238 } // namespace | 238 } // namespace |
OLD | NEW |