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

Unified Diff: chrome/browser/translate/scoped_cld_component_data_harness.h

Issue 333603002: Modularize Compact Language Detector 2 (CLD2) data sources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use base/memory/scoped_ptr.h, not base/scoped_ptr.h Created 6 years, 6 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/translate/scoped_cld_component_data_harness.h
diff --git a/chrome/browser/translate/scoped_cld_component_data_harness.h b/chrome/browser/translate/scoped_cld_component_data_harness.h
new file mode 100644
index 0000000000000000000000000000000000000000..7ce132d94703a41d3ba7df87af1c2a8ec963a20c
--- /dev/null
+++ b/chrome/browser/translate/scoped_cld_component_data_harness.h
@@ -0,0 +1,31 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_TRANSLATE_SCOPED_CLD_COMPONENT_DATA_HARNESS_H_
+#define CHROME_BROWSER_TRANSLATE_SCOPED_CLD_COMPONENT_DATA_HARNESS_H_
+
+#include "base/macros.h"
+#include "chrome/browser/translate/scoped_cld_data_harness.h"
+
+namespace test {
+
+class ScopedCldComponentDataHarness : public ScopedCldDataHarness {
+ public:
+ ScopedCldComponentDataHarness();
+ virtual ~ScopedCldComponentDataHarness();
+ virtual void Init() OVERRIDE;
+
+ private:
+ void ClearComponentDataFileState();
+ void GetExtractedComponentDestination(base::FilePath*);
+ void GetComponentDataFileDestination(base::FilePath*);
+ void DeleteComponentTree();
+ void CopyComponentTree();
+
+ DISALLOW_COPY_AND_ASSIGN(ScopedCldComponentDataHarness);
+};
+
+} // namespace test
+
+#endif // CHROME_BROWSER_TRANSLATE_SCOPED_CLD_COMPONENT_DATA_HARNESS_H_

Powered by Google App Engine
This is Rietveld 408576698