Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / browser / translate / component_cld_data_harness.h
blobd3da55dc6d961c6747e01efa0fd4893838cce20c
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.
5 #ifndef CHROME_BROWSER_TRANSLATE_COMPONENT_CLD_DATA_HARNESS_H_
6 #define CHROME_BROWSER_TRANSLATE_COMPONENT_CLD_DATA_HARNESS_H_
8 #include "base/macros.h"
9 #include "chrome/browser/translate/cld_data_harness.h"
11 namespace test {
13 // Utility class that sets up a test harness suitable for injecting a
14 // component-updater-based CLD data file into the runtime. See CldDataHarness
15 // class for more details.
16 class ComponentCldDataHarness : public CldDataHarness {
17 public:
18 ComponentCldDataHarness() {}
19 ~ComponentCldDataHarness() override;
20 void Init() override;
22 private:
23 void ClearComponentDataFileState();
24 void GetExtractedComponentDestination(base::FilePath*);
25 void GetComponentDataFileDestination(base::FilePath*);
26 void DeleteComponentTree();
27 void CopyComponentTree();
29 DISALLOW_COPY_AND_ASSIGN(ComponentCldDataHarness);
32 } // namespace test
34 #endif // CHROME_BROWSER_TRANSLATE_COMPONENT_CLD_DATA_HARNESS_H_