diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-25 23:24:02 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-25 23:24:02 +0000 |
commit | 8bdf67c5bf53bb184ad06bbc814c24f42c674359 (patch) | |
tree | dcaa2e9f93d8fe9441988e5235356cc029b45f58 /chrome/common/net/gaia | |
parent | 0eea06f6952b120a77273e2e5f2e961874f51d7d (diff) | |
download | chromium_src-8bdf67c5bf53bb184ad06bbc814c24f42c674359.zip chromium_src-8bdf67c5bf53bb184ad06bbc814c24f42c674359.tar.gz chromium_src-8bdf67c5bf53bb184ad06bbc814c24f42c674359.tar.bz2 |
sync: Rename Expect*Value() to ExpectDict*Value().
This is in preparation to a fix a TODO to move another ExpectStringValue()
to values_test_util.h
BUG=None
TEST=sync_unit_tests
R=akalin@chromium.org
Review URL: http://codereview.chromium.org/6902012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82944 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/net/gaia')
-rw-r--r-- | chrome/common/net/gaia/google_service_auth_error_unittest.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/chrome/common/net/gaia/google_service_auth_error_unittest.cc b/chrome/common/net/gaia/google_service_auth_error_unittest.cc index e1436ba..15ed78c 100644 --- a/chrome/common/net/gaia/google_service_auth_error_unittest.cc +++ b/chrome/common/net/gaia/google_service_auth_error_unittest.cc @@ -14,7 +14,7 @@ namespace { -using test::ExpectStringValue; +using test::ExpectDictStringValue; class GoogleServiceAuthErrorTest : public testing::Test {}; @@ -40,7 +40,7 @@ TEST_F(GoogleServiceAuthErrorTest, None) { GoogleServiceAuthError error(GoogleServiceAuthError::None()); scoped_ptr<DictionaryValue> value(error.ToValue()); EXPECT_EQ(1u, value->size()); - ExpectStringValue("NONE", *value, "state"); + ExpectDictStringValue("NONE", *value, "state"); } TEST_F(GoogleServiceAuthErrorTest, ConnectionFailed) { @@ -48,8 +48,8 @@ TEST_F(GoogleServiceAuthErrorTest, ConnectionFailed) { GoogleServiceAuthError::FromConnectionError(net::OK)); scoped_ptr<DictionaryValue> value(error.ToValue()); EXPECT_EQ(2u, value->size()); - ExpectStringValue("CONNECTION_FAILED", *value, "state"); - ExpectStringValue("net::OK", *value, "networkError"); + ExpectDictStringValue("CONNECTION_FAILED", *value, "state"); + ExpectDictStringValue("net::OK", *value, "networkError"); } TEST_F(GoogleServiceAuthErrorTest, CaptchaChallenge) { @@ -59,13 +59,13 @@ TEST_F(GoogleServiceAuthErrorTest, CaptchaChallenge) { GURL("http://www.bing.com"))); scoped_ptr<DictionaryValue> value(error.ToValue()); EXPECT_EQ(2u, value->size()); - ExpectStringValue("CAPTCHA_REQUIRED", *value, "state"); + ExpectDictStringValue("CAPTCHA_REQUIRED", *value, "state"); DictionaryValue* captcha_value = NULL; EXPECT_TRUE(value->GetDictionary("captcha", &captcha_value)); ASSERT_TRUE(captcha_value); - ExpectStringValue("captcha_token", *captcha_value, "token"); - ExpectStringValue("http://www.google.com/", *captcha_value, "imageUrl"); - ExpectStringValue("http://www.bing.com/", *captcha_value, "unlockUrl"); + ExpectDictStringValue("captcha_token", *captcha_value, "token"); + ExpectDictStringValue("http://www.google.com/", *captcha_value, "imageUrl"); + ExpectDictStringValue("http://www.bing.com/", *captcha_value, "unlockUrl"); } } // namespace |