OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/mobile_config.h" | 5 #include "chrome/browser/chromeos/mobile_config.h" |
6 | 6 |
7 #include "base/time.h" | 7 #include "base/time/time.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 | 9 |
10 namespace { | 10 namespace { |
11 | 11 |
12 const char kBadManifest[] = "{\"version\": \"1\"}"; | 12 const char kBadManifest[] = "{\"version\": \"1\"}"; |
13 | 13 |
14 const char kGoodMobileConfig[] = | 14 const char kGoodMobileConfig[] = |
15 "{" | 15 "{" |
16 " \"version\": \"1.0\"," | 16 " \"version\": \"1.0\"," |
17 " \"carriers\" : {\n" | 17 " \"carriers\" : {\n" |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 EXPECT_TRUE(config_us.IsReady()); | 240 EXPECT_TRUE(config_us.IsReady()); |
241 config_us.LoadManifestFromString(kLocalMobileConfig); | 241 config_us.LoadManifestFromString(kLocalMobileConfig); |
242 EXPECT_TRUE(config_us.IsReady()); | 242 EXPECT_TRUE(config_us.IsReady()); |
243 const MobileConfig::LocaleConfig* locale_config; | 243 const MobileConfig::LocaleConfig* locale_config; |
244 locale_config = config_us.GetLocaleConfig(); | 244 locale_config = config_us.GetLocaleConfig(); |
245 EXPECT_TRUE(locale_config != NULL); | 245 EXPECT_TRUE(locale_config != NULL); |
246 EXPECT_EQ("accounts.carrier.com/localized/", locale_config->setup_url()); | 246 EXPECT_EQ("accounts.carrier.com/localized/", locale_config->setup_url()); |
247 } | 247 } |
248 | 248 |
249 } // namespace chromeos | 249 } // namespace chromeos |
OLD | NEW |