Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(940)

Side by Side Diff: ios/web/web_state/js/credential_util_unittest.mm

Issue 1456983002: Move JS-related password manager code upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Indent fixed, capitalisation fixed, typo fixed Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/web/web_state/js/credential_util.mm ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ios/web/web_state/js/credential_util.mm ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698