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

Unified Diff: ios/public/provider/chrome/browser/omaha/test_omaha_service_provider.mm

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/public/provider/chrome/browser/omaha/test_omaha_service_provider.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/public/provider/chrome/browser/omaha/test_omaha_service_provider.mm
diff --git a/ios/public/provider/chrome/browser/omaha/test_omaha_service_provider.mm b/ios/public/provider/chrome/browser/omaha/test_omaha_service_provider.mm
index dd41f7a29093bfb84c2a0e8c41e462684fe6e498..f7ccadf4b021d21cfe4282fea44b60ed3dad13c0 100644
--- a/ios/public/provider/chrome/browser/omaha/test_omaha_service_provider.mm
+++ b/ios/public/provider/chrome/browser/omaha/test_omaha_service_provider.mm
@@ -4,20 +4,33 @@
#import "ios/public/provider/chrome/browser/omaha/test_omaha_service_provider.h"
+namespace {
+
+const char kTestUpdateServerURL[] = "https://iosupdatetest.chromium.org";
+
+const char kTestApplicationID[] = "{TestApplicationID}";
+
+// Brand-codes are composed of four capital letters.
+const char kTestBrandCode[] = "RIMZ";
+
+} // namespace
+
TestOmahaServiceProvider::TestOmahaServiceProvider() {}
TestOmahaServiceProvider::~TestOmahaServiceProvider() {}
+void TestOmahaServiceProvider::Initialize() {}
+
GURL TestOmahaServiceProvider::GetUpdateServerURL() const {
- return GURL();
+ return GURL(kTestUpdateServerURL);
}
std::string TestOmahaServiceProvider::GetApplicationID() const {
- return std::string();
+ return kTestApplicationID;
}
std::string TestOmahaServiceProvider::GetBrandCode() const {
- return std::string();
+ return kTestBrandCode;
}
void TestOmahaServiceProvider::AppendExtraAttributes(
« no previous file with comments | « ios/public/provider/chrome/browser/omaha/test_omaha_service_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698