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 #ifndef CHROME_BROWSER_TRANSLATE_STANDALONE_CLD_DATA_HARNESS_H_ | 5 #ifndef CHROME_BROWSER_TRANSLATE_STANDALONE_CLD_DATA_HARNESS_H_ |
6 #define CHROME_BROWSER_TRANSLATE_STANDALONE_CLD_DATA_HARNESS_H_ | 6 #define CHROME_BROWSER_TRANSLATE_STANDALONE_CLD_DATA_HARNESS_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "chrome/browser/translate/cld_data_harness.h" | 9 #include "chrome/browser/translate/cld_data_harness.h" |
9 | 10 |
10 namespace test { | 11 namespace test { |
11 | 12 |
| 13 // Utility class that sets up a test harness suitable for injecting a standalone |
| 14 // CLD data file into the runtime. See CldDataHarness class for more details. |
12 class StandaloneCldDataHarness : public CldDataHarness { | 15 class StandaloneCldDataHarness : public CldDataHarness { |
13 public: | 16 public: |
14 StandaloneCldDataHarness(); | 17 StandaloneCldDataHarness() {} |
15 virtual ~StandaloneCldDataHarness(); | 18 ~StandaloneCldDataHarness() override; |
16 virtual void Init() override; | 19 void Init() override; |
17 | 20 |
18 private: | 21 private: |
19 void GetStandaloneDataFileSource(base::FilePath*); | 22 void GetStandaloneDataFileSource(base::FilePath*); |
20 void GetStandaloneDataFileDestination(base::FilePath*); | 23 void GetStandaloneDataFileDestination(base::FilePath*); |
21 void DeleteStandaloneDataFile(); | 24 void DeleteStandaloneDataFile(); |
22 void CopyStandaloneDataFile(); | 25 void CopyStandaloneDataFile(); |
23 | 26 |
24 DISALLOW_COPY_AND_ASSIGN(StandaloneCldDataHarness); | 27 DISALLOW_COPY_AND_ASSIGN(StandaloneCldDataHarness); |
25 }; | 28 }; |
26 | 29 |
27 } // namespace test | 30 } // namespace test |
28 | 31 |
29 #endif // CHROME_BROWSER_TRANSLATE_STANDALONE_CLD_DATA_HARNESS_H_ | 32 #endif // CHROME_BROWSER_TRANSLATE_STANDALONE_CLD_DATA_HARNESS_H_ |
OLD | NEW |