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

Unified Diff: chrome/browser/component_updater/test/test_configurator.h

Issue 493953002: Componentize component_updater: Move a bunch of tests to component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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: chrome/browser/component_updater/test/test_configurator.h
diff --git a/chrome/browser/component_updater/test/test_configurator.h b/chrome/browser/component_updater/test/test_configurator.h
deleted file mode 100644
index 2cbe5af66cd57dead6c6bf192cc0eb6118abae41..0000000000000000000000000000000000000000
--- a/chrome/browser/component_updater/test/test_configurator.h
+++ /dev/null
@@ -1,77 +0,0 @@
-// 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_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_
-#define CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_
-
-#include <string>
-#include <utility>
-
-#include "base/basictypes.h"
-#include "base/callback.h"
-#include "base/compiler_specific.h"
-#include "base/memory/ref_counted.h"
-#include "components/component_updater/component_updater_configurator.h"
-#include "net/url_request/url_request_test_util.h"
-
-namespace component_updater {
-
-#define POST_INTERCEPT_SCHEME "https"
-#define POST_INTERCEPT_HOSTNAME "localhost2"
-#define POST_INTERCEPT_PATH "/update2"
-
-struct CrxComponent;
-
-class TestConfigurator : public Configurator {
- public:
- TestConfigurator();
- virtual ~TestConfigurator();
-
- // Overrrides for Configurator.
- virtual int InitialDelay() const OVERRIDE;
- virtual int NextCheckDelay() OVERRIDE;
- virtual int StepDelay() const OVERRIDE;
- virtual int StepDelayMedium() OVERRIDE;
- virtual int MinimumReCheckWait() const OVERRIDE;
- virtual int OnDemandDelay() const OVERRIDE;
- virtual GURL UpdateUrl() const OVERRIDE;
- virtual GURL PingUrl() const OVERRIDE;
- virtual base::Version GetBrowserVersion() const OVERRIDE;
- virtual std::string GetChannel() const OVERRIDE;
- virtual std::string GetLang() const OVERRIDE;
- virtual std::string GetOSLongName() const OVERRIDE;
- virtual std::string ExtraRequestParams() const OVERRIDE;
- virtual size_t UrlSizeLimit() const OVERRIDE;
- virtual net::URLRequestContextGetter* RequestContext() const OVERRIDE;
- virtual scoped_refptr<OutOfProcessPatcher> CreateOutOfProcessPatcher()
- const OVERRIDE;
- virtual bool DeltasEnabled() const OVERRIDE;
- virtual bool UseBackgroundDownloader() const OVERRIDE;
- virtual scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner()
- const OVERRIDE;
- virtual scoped_refptr<base::SingleThreadTaskRunner>
- GetSingleThreadTaskRunner() const OVERRIDE;
-
- typedef std::pair<CrxComponent*, int> CheckAtLoopCount;
- void SetLoopCount(int times);
- void SetRecheckTime(int seconds);
- void SetOnDemandTime(int seconds);
- void SetQuitClosure(const base::Closure& quit_closure);
- void SetInitialDelay(int seconds);
-
- private:
- int initial_time_;
- int times_;
- int recheck_time_;
- int ondemand_time_;
-
- scoped_refptr<net::TestURLRequestContextGetter> context_;
- base::Closure quit_closure_;
-
- DISALLOW_COPY_AND_ASSIGN(TestConfigurator);
-};
-
-} // namespace component_updater
-
-#endif // CHROME_BROWSER_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_

Powered by Google App Engine
This is Rietveld 408576698