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

Unified Diff: chrome/browser/autofill/wallet/wallet_items_unittest.cc

Issue 12225095: Interactive autofill: Adds footnote view to accept legal documents in the UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sky@ review Created 7 years, 10 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autofill/wallet/wallet_items_unittest.cc
diff --git a/chrome/browser/autofill/wallet/wallet_items_unittest.cc b/chrome/browser/autofill/wallet/wallet_items_unittest.cc
index cf2496c513fd71d1a067961b77627c4cc6a0b5e6..6cbbd0b3e9e62a1ba8c272e4fe96e2f93c0d8f0b 100644
--- a/chrome/browser/autofill/wallet/wallet_items_unittest.cc
+++ b/chrome/browser/autofill/wallet/wallet_items_unittest.cc
@@ -5,6 +5,7 @@
#include "base/json/json_reader.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
+#include "base/utf_string_conversions.h"
#include "base/values.h"
#include "chrome/browser/autofill/wallet/required_action.h"
#include "chrome/browser/autofill/wallet/wallet_items.h"
@@ -444,13 +445,13 @@ TEST_F(WalletItemsTest, CreateLegalDocumentMissingDisplayName) {
TEST_F(WalletItemsTest, CreateLegalDocument) {
SetUpDictionary(kLegalDocument);
- WalletItems::LegalDocument expected("doc_id", "display_name");
+ WalletItems::LegalDocument expected("doc_id", ASCIIToUTF16("display_name"));
ASSERT_EQ(expected,
*WalletItems::LegalDocument::CreateLegalDocument(*dict));
}
TEST_F(WalletItemsTest, LegalDocumentGetUrl) {
- WalletItems::LegalDocument legal_doc("doc_id", "display_name");
+ WalletItems::LegalDocument legal_doc("doc_id", ASCIIToUTF16("display_name"));
EXPECT_EQ("https://wallet.google.com/customer/gadget/legaldocument.html?"
"docId=doc_id",
legal_doc.GetUrl().spec());
@@ -539,7 +540,7 @@ TEST_F(WalletItemsTest, CreateWalletItems) {
scoped_ptr<WalletItems::LegalDocument> legal_document(
new WalletItems::LegalDocument("doc_id",
- "display_name"));
+ ASCIIToUTF16("display_name")));
expected.AddLegalDocument(legal_document.Pass());
ASSERT_EQ(expected, *WalletItems::CreateWalletItems(*dict));
« no previous file with comments | « chrome/browser/autofill/wallet/wallet_items.cc ('k') | chrome/browser/ui/autofill/autofill_dialog_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698