| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/chromeos/customization_document.h" | 5 #include "chrome/browser/chromeos/customization_document.h" |
| 6 | 6 |
| 7 #include "chrome/browser/chromeos/system/mock_statistics_provider.h" | 7 #include "chromeos/system/mock_statistics_provider.h" |
| 8 #include "testing/gmock/include/gmock/gmock.h" | 8 #include "testing/gmock/include/gmock/gmock.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| 11 namespace { | 11 namespace { |
| 12 | 12 |
| 13 const char kGoodStartupManifest[] = | 13 const char kGoodStartupManifest[] = |
| 14 "{" | 14 "{" |
| 15 " \"version\": \"1.0\"," | 15 " \"version\": \"1.0\"," |
| 16 " \"initial_locale\" : \"en-US\"," | 16 " \"initial_locale\" : \"en-US\"," |
| 17 " \"initial_timezone\" : \"US/Pacific\"," | 17 " \"initial_timezone\" : \"US/Pacific\"," |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 EXPECT_EQ("http://mario/ru", customization.GetSupportPage("ru-RU")); | 156 EXPECT_EQ("http://mario/ru", customization.GetSupportPage("ru-RU")); |
| 157 EXPECT_EQ("http://mario/global", customization.GetSupportPage("ja")); | 157 EXPECT_EQ("http://mario/global", customization.GetSupportPage("ja")); |
| 158 } | 158 } |
| 159 | 159 |
| 160 TEST(ServicesCustomizationDocumentTest, BadManifest) { | 160 TEST(ServicesCustomizationDocumentTest, BadManifest) { |
| 161 ServicesCustomizationDocument customization(kBadManifest); | 161 ServicesCustomizationDocument customization(kBadManifest); |
| 162 EXPECT_FALSE(customization.IsReady()); | 162 EXPECT_FALSE(customization.IsReady()); |
| 163 } | 163 } |
| 164 | 164 |
| 165 } // namespace chromeos | 165 } // namespace chromeos |
| OLD | NEW |