OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_TRANSLATE_STANDALONE_CLD_DATA_HARNESS_H_ | |
6 #define CHROME_BROWSER_TRANSLATE_STANDALONE_CLD_DATA_HARNESS_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "chrome/browser/translate/cld_data_harness.h" | |
10 | |
11 namespace test { | |
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. | |
15 class StandaloneCldDataHarness : public CldDataHarness { | |
16 public: | |
17 StandaloneCldDataHarness() {} | |
18 ~StandaloneCldDataHarness() override; | |
19 void Init() override; | |
20 | |
21 private: | |
22 void GetStandaloneDataFileSource(base::FilePath*); | |
23 void GetStandaloneDataFileDestination(base::FilePath*); | |
24 void DeleteStandaloneDataFile(); | |
25 void CopyStandaloneDataFile(); | |
26 | |
27 DISALLOW_COPY_AND_ASSIGN(StandaloneCldDataHarness); | |
28 }; | |
29 | |
30 } // namespace test | |
31 | |
32 #endif // CHROME_BROWSER_TRANSLATE_STANDALONE_CLD_DATA_HARNESS_H_ | |
OLD | NEW |