Skip to content

Commit

Permalink
nit: changed condition
Browse files Browse the repository at this point in the history
  • Loading branch information
spylogsster committed Nov 9, 2021
1 parent 55db922 commit e4760c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/brave_wallet/browser/eth_tx_controller_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit e4760c5

Please sign in to comment.