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 "standalone_cld_data_harness.h" | 5 #include "standalone_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/common/chrome_paths.h" | 11 #include "chrome/common/chrome_paths.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 // This has to match what's in chrome_translate_client.cc | 16 // This has to match what's in chrome_translate_client.cc |
17 const base::FilePath::CharType kStandaloneDataFileName[] = | 17 const base::FilePath::CharType kStandaloneDataFileName[] = |
18 FILE_PATH_LITERAL("cld2_data.bin"); | 18 FILE_PATH_LITERAL("cld2_data.bin"); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 ASSERT_TRUE(base::CopyFile(source_file, target_file)); | 73 ASSERT_TRUE(base::CopyFile(source_file, target_file)); |
74 ASSERT_TRUE(base::PathExists(target_file)); | 74 ASSERT_TRUE(base::PathExists(target_file)); |
75 } | 75 } |
76 | 76 |
77 scoped_ptr<CldDataHarness> CreateCldDataHarness() { | 77 scoped_ptr<CldDataHarness> CreateCldDataHarness() { |
78 scoped_ptr<CldDataHarness> result(new StandaloneCldDataHarness()); | 78 scoped_ptr<CldDataHarness> result(new StandaloneCldDataHarness()); |
79 return result.Pass(); | 79 return result.Pass(); |
80 } | 80 } |
81 | 81 |
82 } // namespace test | 82 } // namespace test |
OLD | NEW |