Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Side by Side Diff: components/update_client/test_installer.cc

Issue 1102103002: Move the unit tests files side-by-side with the corresponding .cc files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "components/update_client/test/test_installer.h" 5 #include "components/update_client/test_installer.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 12
13 namespace update_client { 13 namespace update_client {
14 14
15 TestInstaller::TestInstaller() : error_(0), install_count_(0) { 15 TestInstaller::TestInstaller() : error_(0), install_count_(0) {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 bool VersionedTestInstaller::GetInstalledFile(const std::string& file, 77 bool VersionedTestInstaller::GetInstalledFile(const std::string& file,
78 base::FilePath* installed_file) { 78 base::FilePath* installed_file) {
79 base::FilePath path; 79 base::FilePath path;
80 path = install_directory_.AppendASCII(current_version_.GetString()); 80 path = install_directory_.AppendASCII(current_version_.GetString());
81 *installed_file = path.Append(base::FilePath::FromUTF8Unsafe(file)); 81 *installed_file = path.Append(base::FilePath::FromUTF8Unsafe(file));
82 return true; 82 return true;
83 } 83 }
84 84
85 } // namespace update_client 85 } // namespace update_client
OLDNEW
« no previous file with comments | « components/update_client/test_installer.h ('k') | components/update_client/update_checker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698