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

Unified Diff: chrome/browser/ui/autofill/card_unmask_prompt_view_browsertest.cc

Issue 929293005: Autofill: Add contents of CVC unmask prompt dialog on OSX. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cup_01_initial_add
Patch Set: Fix failing browser test by calling test::SetCreditCardInfo. Created 5 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/autofill/card_unmask_prompt_view_browsertest.cc
diff --git a/chrome/browser/ui/autofill/card_unmask_prompt_view_browsertest.cc b/chrome/browser/ui/autofill/card_unmask_prompt_view_browsertest.cc
index d050c9d23c4eba818e998d08bb73919a435a085b..926efc6c96792342e2bad7c24bf931068b184df3 100644
--- a/chrome/browser/ui/autofill/card_unmask_prompt_view_browsertest.cc
+++ b/chrome/browser/ui/autofill/card_unmask_prompt_view_browsertest.cc
@@ -8,6 +8,7 @@
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/test/base/in_process_browser_test.h"
+#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/card_unmask_delegate.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/test_utils.h"
@@ -98,7 +99,10 @@ class CardUnmaskPromptViewBrowserTest : public InProcessBrowserTest {
};
IN_PROC_BROWSER_TEST_F(CardUnmaskPromptViewBrowserTest, DisplayUI) {
- CreditCard credit_card(base::GenerateGUID(), "https://www.example.com/");
+ CreditCard credit_card(CreditCard::MASKED_SERVER_CARD, "a123");
+ test::SetCreditCardInfo(&credit_card, "Bonnie Parker",
+ "2109" /* Mastercard */, "12", "2012");
+ credit_card.SetTypeForMaskedCard(kMasterCard);
bondd 2015/03/06 23:57:15 estade@ emailed me this as a fix for the broken br
controller()->ShowPrompt(credit_card, delegate()->GetWeakPtr());
controller()->RunMessageLoop();
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698