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

Side by Side Diff: ios/public/provider/chrome/browser/omaha/test_omaha_service_provider.h

Issue 2500933002: [ios] Adds an Initialize() method to OmahaServiceProvider. (Closed)
Patch Set: Rebased. Created 4 years, 1 month 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 IOS_PUBLIC_PROVIDER_CHROME_BROWSER_OMAHA_TEST_OMAHA_SERVICE_PROVIDER_H_ 5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_OMAHA_TEST_OMAHA_SERVICE_PROVIDER_H_
6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_OMAHA_TEST_OMAHA_SERVICE_PROVIDER_H_ 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_OMAHA_TEST_OMAHA_SERVICE_PROVIDER_H_
7 7
8 #include "ios/public/provider/chrome/browser/omaha/omaha_service_provider.h" 8 #include "ios/public/provider/chrome/browser/omaha/omaha_service_provider.h"
9 9
10 class TestOmahaServiceProvider : public OmahaServiceProvider { 10 class TestOmahaServiceProvider : public OmahaServiceProvider {
11 public: 11 public:
12 TestOmahaServiceProvider(); 12 TestOmahaServiceProvider();
13 ~TestOmahaServiceProvider() override; 13 ~TestOmahaServiceProvider() override;
14 14
15 // OmahaServiceProvider. 15 // OmahaServiceProvider.
16 void Initialize() override;
16 GURL GetUpdateServerURL() const override; 17 GURL GetUpdateServerURL() const override;
17 std::string GetApplicationID() const override; 18 std::string GetApplicationID() const override;
18 std::string GetBrandCode() const override; 19 std::string GetBrandCode() const override;
19 void AppendExtraAttributes(const std::string& tag, 20 void AppendExtraAttributes(const std::string& tag,
20 OmahaXmlWriter* writer) const override; 21 OmahaXmlWriter* writer) const override;
21 22
22 private: 23 private:
23 DISALLOW_COPY_AND_ASSIGN(TestOmahaServiceProvider); 24 DISALLOW_COPY_AND_ASSIGN(TestOmahaServiceProvider);
24 }; 25 };
25 26
26 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_OMAHA_TEST_OMAHA_SERVICE_PROVIDER_ H_ 27 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_OMAHA_TEST_OMAHA_SERVICE_PROVIDER_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698