From e4760c561153ab2ec4a37b08fbdf4f8b25c82fde Mon Sep 17 00:00:00 2001 From: sergey p Date: Tue, 9 Nov 2021 22:40:21 +0300 Subject: [PATCH] nit: changed condition --- .../brave_wallet/browser/eth_tx_controller_unittest.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/brave_wallet/browser/eth_tx_controller_unittest.cc b/components/brave_wallet/browser/eth_tx_controller_unittest.cc index 4bb5ba96a2f3..5cefe6863069 100644 --- a/components/brave_wallet/browser/eth_tx_controller_unittest.cc +++ b/components/brave_wallet/browser/eth_tx_controller_unittest.cc @@ -830,7 +830,7 @@ TEST_F(EthTxControllerUnitTest, GetNonceForHardwareTransaction) { callback_called = false; eth_tx_controller_->GetNonceForHardwareTransaction( tx_meta_id, base::BindLambdaForTesting([&](const std::string& nonce) { - EXPECT_TRUE(nonce.size()); + EXPECT_FALSE(nonce.empty()); auto tx_meta = eth_tx_controller_->GetTxForTesting(tx_meta_id); EXPECT_TRUE(tx_meta); EXPECT_EQ(tx_meta->status, mojom::TransactionStatus::Unapproved); @@ -878,7 +878,7 @@ TEST_F(EthTxControllerUnitTest, GetNonceForHardwareTransaction1559) { callback_called = false; eth_tx_controller_->GetNonceForHardwareTransaction( tx_meta_id, base::BindLambdaForTesting([&](const std::string& nonce) { - EXPECT_TRUE(nonce.size()); + EXPECT_FALSE(nonce.empty()); auto tx_meta = eth_tx_controller_->GetTxForTesting(tx_meta_id); EXPECT_TRUE(tx_meta); EXPECT_EQ(tx_meta->status, mojom::TransactionStatus::Unapproved); @@ -907,7 +907,7 @@ TEST_F(EthTxControllerUnitTest, GetNonceForHardwareTransactionFail) { eth_tx_controller_->AddObserver(observer.GetReceiver()); eth_tx_controller_->GetNonceForHardwareTransaction( std::string(), base::BindLambdaForTesting([&](const std::string& nonce) { - EXPECT_FALSE(nonce.size()); + EXPECT_TRUE(nonce.empty()); callback_called = true; })); base::RunLoop().RunUntilIdle();