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

Unified Diff: components/component_updater/test/test_configurator.h

Issue 514473002: Componentize component_updater: Break content/ dependency for rest of component_updater tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix lint issues. fix explicits. Created 6 years, 4 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: components/component_updater/test/test_configurator.h
diff --git a/components/component_updater/test/test_configurator.h b/components/component_updater/test/test_configurator.h
index 2cbe5af66cd57dead6c6bf192cc0eb6118abae41..7afa918412df9fed176750a426293b2fa47b4e39 100644
--- a/components/component_updater/test/test_configurator.h
+++ b/components/component_updater/test/test_configurator.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_
-#define CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_
+#ifndef COMPONENTS_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_
+#define COMPONENTS_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_
#include <string>
#include <utility>
@@ -25,7 +25,9 @@ struct CrxComponent;
class TestConfigurator : public Configurator {
public:
- TestConfigurator();
+ TestConfigurator(
+ const scoped_refptr<base::SequencedTaskRunner>& worker_task_runner,
+ const scoped_refptr<base::SingleThreadTaskRunner>& network_task_runner);
virtual ~TestConfigurator();
// Overrrides for Configurator.
@@ -61,6 +63,9 @@ class TestConfigurator : public Configurator {
void SetInitialDelay(int seconds);
private:
+ scoped_refptr<base::SequencedTaskRunner> worker_task_runner_;
+ scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_;
+
int initial_time_;
int times_;
int recheck_time_;
@@ -74,4 +79,4 @@ class TestConfigurator : public Configurator {
} // namespace component_updater
-#endif // CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_
+#endif // COMPONENTS_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_

Powered by Google App Engine
This is Rietveld 408576698