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

Side by Side Diff: components/update_client/test_configurator.h

Issue 1861383004: Add module for counting date-last-roll-call and persisting those counts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another test fix. Created 4 years, 8 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 unified diff | Download patch
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 COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_ 5 #ifndef COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_
6 #define COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_ 6 #define COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 #include <utility> 11 #include <utility>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "components/update_client/configurator.h" 16 #include "components/update_client/configurator.h"
17 #include "net/url_request/url_request_test_util.h" 17 #include "net/url_request/url_request_test_util.h"
18 18
19 class GURL; 19 class GURL;
20 class PrefService;
20 21
21 namespace base { 22 namespace base {
22 class SequencedTaskRunner; 23 class SequencedTaskRunner;
23 } // namespace base 24 } // namespace base
24 25
25 namespace update_client { 26 namespace update_client {
26 27
27 #define POST_INTERCEPT_SCHEME "https" 28 #define POST_INTERCEPT_SCHEME "https"
28 #define POST_INTERCEPT_HOSTNAME "localhost2" 29 #define POST_INTERCEPT_HOSTNAME "localhost2"
29 #define POST_INTERCEPT_PATH "/update2" 30 #define POST_INTERCEPT_PATH "/update2"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 std::string GetOSLongName() const override; 71 std::string GetOSLongName() const override;
71 std::string ExtraRequestParams() const override; 72 std::string ExtraRequestParams() const override;
72 std::string GetDownloadPreference() const override; 73 std::string GetDownloadPreference() const override;
73 net::URLRequestContextGetter* RequestContext() const override; 74 net::URLRequestContextGetter* RequestContext() const override;
74 scoped_refptr<OutOfProcessPatcher> CreateOutOfProcessPatcher() const override; 75 scoped_refptr<OutOfProcessPatcher> CreateOutOfProcessPatcher() const override;
75 bool DeltasEnabled() const override; 76 bool DeltasEnabled() const override;
76 bool UseBackgroundDownloader() const override; 77 bool UseBackgroundDownloader() const override;
77 bool UseCupSigning() const override; 78 bool UseCupSigning() const override;
78 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() 79 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner()
79 const override; 80 const override;
81 PrefService* GetPrefService() const override;
80 82
81 void SetBrand(const std::string& brand); 83 void SetBrand(const std::string& brand);
82 void SetOnDemandTime(int seconds); 84 void SetOnDemandTime(int seconds);
83 void SetInitialDelay(int seconds); 85 void SetInitialDelay(int seconds);
84 void SetDownloadPreference(const std::string& download_preference); 86 void SetDownloadPreference(const std::string& download_preference);
85 void SetUseCupSigning(bool use_cup_signing); 87 void SetUseCupSigning(bool use_cup_signing);
86 void SetUpdateCheckUrl(const GURL& url); 88 void SetUpdateCheckUrl(const GURL& url);
87 void SetPingUrl(const GURL& url); 89 void SetPingUrl(const GURL& url);
88 90
89 private: 91 private:
(...skipping 12 matching lines...) Expand all
102 GURL ping_url_; 104 GURL ping_url_;
103 105
104 scoped_refptr<net::TestURLRequestContextGetter> context_; 106 scoped_refptr<net::TestURLRequestContextGetter> context_;
105 107
106 DISALLOW_COPY_AND_ASSIGN(TestConfigurator); 108 DISALLOW_COPY_AND_ASSIGN(TestConfigurator);
107 }; 109 };
108 110
109 } // namespace update_client 111 } // namespace update_client
110 112
111 #endif // COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_ 113 #endif // COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_
OLDNEW
« no previous file with comments | « components/update_client/persisted_data_unittest.cc ('k') | components/update_client/test_configurator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698