OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/web/web_state/js/credential_util.h" | 5 #include "ios/web/public/web_state/js/credential_util.h" |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "ios/web/public/web_state/credential.h" | 10 #include "ios/web/public/web_state/credential.h" |
11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "testing/gtest_mac.h" | 13 #include "testing/gtest_mac.h" |
14 #include "testing/platform_test.h" | 14 #include "testing/platform_test.h" |
15 #include "url/gurl.h" | 15 #include "url/gurl.h" |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 TEST(CredentialUtilTest, SerializeEmptyCredentialIntoNonEmptyDictionary) { | 216 TEST(CredentialUtilTest, SerializeEmptyCredentialIntoNonEmptyDictionary) { |
217 base::DictionaryValue value; | 217 base::DictionaryValue value; |
218 value.SetString("foo", "bar"); | 218 value.SetString("foo", "bar"); |
219 Credential credential; | 219 Credential credential; |
220 CredentialToDictionaryValue(credential, &value); | 220 CredentialToDictionaryValue(credential, &value); |
221 EXPECT_TRUE(make_scoped_ptr(new base::DictionaryValue)->Equals(&value)); | 221 EXPECT_TRUE(make_scoped_ptr(new base::DictionaryValue)->Equals(&value)); |
222 } | 222 } |
223 | 223 |
224 } // namespace | 224 } // namespace |
225 } // namespace web | 225 } // namespace web |
OLD | NEW |