summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/mobile_config_unittest.cc
diff options
context:
space:
mode:
authornkostylev@chromium.org <nkostylev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-13 00:12:02 +0000
committernkostylev@chromium.org <nkostylev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-13 00:12:02 +0000
commit7c8ba8b0e84dab57c5a84dbc768bd72960e94120 (patch)
tree0e0b080970de790f70a5a89e05ff2b27f30ddd95 /chrome/browser/chromeos/mobile_config_unittest.cc
parent76e491b00524253d7593697fea5d9d3d54e4c4e5 (diff)
downloadchromium_src-7c8ba8b0e84dab57c5a84dbc768bd72960e94120.zip
chromium_src-7c8ba8b0e84dab57c5a84dbc768bd72960e94120.tar.gz
chromium_src-7c8ba8b0e84dab57c5a84dbc768bd72960e94120.tar.bz2
[cros] Add "Show portal button" flag in carrier config that launches carrier portal.
BUG=24522 TEST=Have a device with Verizon + active plan. Open Verizon network details. It should have "View account" button that opens portal. Review URL: http://codereview.chromium.org/9186012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117559 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/mobile_config_unittest.cc')
-rw-r--r--chrome/browser/chromeos/mobile_config_unittest.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/chromeos/mobile_config_unittest.cc b/chrome/browser/chromeos/mobile_config_unittest.cc
index bc24774..10c76b6 100644
--- a/chrome/browser/chromeos/mobile_config_unittest.cc
+++ b/chrome/browser/chromeos/mobile_config_unittest.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -27,6 +27,7 @@ const char kGoodMobileConfig[] =
" },\n"
" ],\n"
" \"top_up_url\" : \"http://www.carrier.com/\",\n"
+ " \"show_portal_button\" : true,\n"
" \"deals\" : [\n"
" {\n"
" \"deal_id\" : \"0\",\n"
@@ -122,6 +123,7 @@ TEST(MobileConfigTest, Basic) {
carrier = config.GetCarrier("cr (country)");
EXPECT_TRUE(carrier != NULL);
EXPECT_EQ("http://www.carrier.com/", carrier->top_up_url());
+ EXPECT_EQ(true, carrier->show_portal_button());
const MobileConfig::CarrierDeal* deal;
deal = carrier->GetDefaultDeal();
EXPECT_TRUE(deal != NULL);
@@ -145,6 +147,8 @@ TEST(MobileConfigTest, OldDeal) {
const MobileConfig::Carrier* carrier;
carrier = config.GetCarrier("Carrier (country)");
EXPECT_TRUE(carrier != NULL);
+ // Check default value.
+ EXPECT_EQ(false, carrier->show_portal_button());
const MobileConfig::CarrierDeal* deal;
// TODO(nkostylev): Pass fixed time instead of relying on Time::Now().
deal = carrier->GetDefaultDeal();