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

Unified Diff: chrome/browser/sync/test/integration/single_client_wallet_sync_test.cc

Issue 2455343003: [Sync] Replaced ASSERT/EXPECT_TRUE/FALSE with expected/actual checks. (Closed)
Patch Set: \Updates for Max and rebase. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/test/integration/single_client_wallet_sync_test.cc
diff --git a/chrome/browser/sync/test/integration/single_client_wallet_sync_test.cc b/chrome/browser/sync/test/integration/single_client_wallet_sync_test.cc
index 5c517169697a527d42218f52fb41c56b67ef455f..0725b5cec01d30f81d8c5bd3200e5156aa09f2bb 100644
--- a/chrome/browser/sync/test/integration/single_client_wallet_sync_test.cc
+++ b/chrome/browser/sync/test/integration/single_client_wallet_sync_test.cc
@@ -119,7 +119,7 @@ IN_PROC_BROWSER_TEST_F(SingleClientWalletSyncTest, Download) {
ASSERT_TRUE(SetupSync()) << "SetupSync() failed";
autofill::PersonalDataManager* pdm = GetPersonalDataManager(0);
- ASSERT_TRUE(pdm != nullptr);
+ ASSERT_NE(nullptr, pdm);
std::vector<autofill::CreditCard*> cards = pdm->GetCreditCards();
ASSERT_EQ(1uL, cards.size());
@@ -141,7 +141,7 @@ IN_PROC_BROWSER_TEST_F(SingleClientWalletSyncTest, ClearOnDisableSync) {
// Make sure the card is in the DB.
autofill::PersonalDataManager* pdm = GetPersonalDataManager(0);
- ASSERT_TRUE(pdm != nullptr);
+ ASSERT_NE(nullptr, pdm);
std::vector<autofill::CreditCard*> cards = pdm->GetCreditCards();
ASSERT_EQ(1uL, cards.size());
@@ -159,7 +159,7 @@ IN_PROC_BROWSER_TEST_F(SingleClientWalletSyncTest, ClearOnDisableWalletSync) {
// Make sure the card is in the DB.
autofill::PersonalDataManager* pdm = GetPersonalDataManager(0);
- ASSERT_TRUE(pdm != nullptr);
+ ASSERT_NE(nullptr, pdm);
std::vector<autofill::CreditCard*> cards = pdm->GetCreditCards();
ASSERT_EQ(1uL, cards.size());
@@ -178,7 +178,7 @@ IN_PROC_BROWSER_TEST_F(SingleClientWalletSyncTest,
// Make sure the card is in the DB.
autofill::PersonalDataManager* pdm = GetPersonalDataManager(0);
- ASSERT_TRUE(pdm != nullptr);
+ ASSERT_NE(nullptr, pdm);
std::vector<autofill::CreditCard*> cards = pdm->GetCreditCards();
ASSERT_EQ(1uL, cards.size());

Powered by Google App Engine
This is Rietveld 408576698