OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "component_cld_data_harness.h" | 5 #include "component_cld_data_harness.h" |
6 | 6 |
7 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
8 #include "base/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "chrome/browser/component_updater/cld_component_installer.h" | 11 #include "chrome/browser/component_updater/cld_component_installer.h" |
12 #include "chrome/common/chrome_paths.h" | 12 #include "chrome/common/chrome_paths.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 // This has to match what's in cld_component_installer.cc. | 17 // This has to match what's in cld_component_installer.cc. |
18 const base::FilePath::CharType kComponentDataFileName[] = | 18 const base::FilePath::CharType kComponentDataFileName[] = |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 GetComponentDataFileDestination(&check_path); | 90 GetComponentDataFileDestination(&check_path); |
91 ASSERT_TRUE(base::PathExists(check_path)); | 91 ASSERT_TRUE(base::PathExists(check_path)); |
92 } | 92 } |
93 | 93 |
94 scoped_ptr<CldDataHarness> CreateCldDataHarness() { | 94 scoped_ptr<CldDataHarness> CreateCldDataHarness() { |
95 scoped_ptr<CldDataHarness> result(new ComponentCldDataHarness()); | 95 scoped_ptr<CldDataHarness> result(new ComponentCldDataHarness()); |
96 return result.Pass(); | 96 return result.Pass(); |
97 } | 97 } |
98 | 98 |
99 } // namespace test | 99 } // namespace test |
OLD | NEW |