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

Side by Side Diff: chrome/browser/translate/standalone_cld_data_harness.h

Issue 461633002: Refactor language detection logic to allow non-static CLD data sources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make some of the harness factory methods private Created 6 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/browser/translate/component_cld_data_harness.cc ('k') | chrome/browser/translate/standalone_cld_data_harness.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698