| OLD | NEW |
| 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 #import "ios/public/provider/chrome/browser/omaha/test_omaha_service_provider.h" | 5 #import "ios/public/provider/chrome/browser/omaha/test_omaha_service_provider.h" |
| 6 | 6 |
| 7 namespace { |
| 8 |
| 9 const char kTestUpdateServerURL[] = "https://iosupdatetest.chromium.org"; |
| 10 |
| 11 const char kTestApplicationID[] = "{TestApplicationID}"; |
| 12 |
| 13 // Brand-codes are composed of four capital letters. |
| 14 const char kTestBrandCode[] = "RIMZ"; |
| 15 |
| 16 } // namespace |
| 17 |
| 7 TestOmahaServiceProvider::TestOmahaServiceProvider() {} | 18 TestOmahaServiceProvider::TestOmahaServiceProvider() {} |
| 8 | 19 |
| 9 TestOmahaServiceProvider::~TestOmahaServiceProvider() {} | 20 TestOmahaServiceProvider::~TestOmahaServiceProvider() {} |
| 10 | 21 |
| 22 void TestOmahaServiceProvider::Initialize() {} |
| 23 |
| 11 GURL TestOmahaServiceProvider::GetUpdateServerURL() const { | 24 GURL TestOmahaServiceProvider::GetUpdateServerURL() const { |
| 12 return GURL(); | 25 return GURL(kTestUpdateServerURL); |
| 13 } | 26 } |
| 14 | 27 |
| 15 std::string TestOmahaServiceProvider::GetApplicationID() const { | 28 std::string TestOmahaServiceProvider::GetApplicationID() const { |
| 16 return std::string(); | 29 return kTestApplicationID; |
| 17 } | 30 } |
| 18 | 31 |
| 19 std::string TestOmahaServiceProvider::GetBrandCode() const { | 32 std::string TestOmahaServiceProvider::GetBrandCode() const { |
| 20 return std::string(); | 33 return kTestBrandCode; |
| 21 } | 34 } |
| 22 | 35 |
| 23 void TestOmahaServiceProvider::AppendExtraAttributes( | 36 void TestOmahaServiceProvider::AppendExtraAttributes( |
| 24 const std::string& tag, | 37 const std::string& tag, |
| 25 OmahaXmlWriter* writer) const {} | 38 OmahaXmlWriter* writer) const {} |
| OLD | NEW |