test: Remove circular jtx.h dependencies (#5544)

Circular includes in header files can yield unpredictable results.
This commit is contained in:
Bronek Kozicki
2025-07-09 13:43:11 +01:00
committed by tequ
parent 17205ac0a8
commit 3abe659f34
8 changed files with 12 additions and 17 deletions

View File

@@ -17,18 +17,8 @@
*/
//==============================================================================
#include <test/jtx/AMM.h>
#include <test/jtx.h>
#include <test/jtx/AMMTest.h>
#include <test/jtx/Account.h>
#include <test/jtx/Env.h>
#include <test/jtx/amount.h>
#include <test/jtx/credentials.h>
#include <test/jtx/fee.h>
#include <test/jtx/flags.h>
#include <test/jtx/mpt.h>
#include <test/jtx/permissioned_domains.h>
#include <test/jtx/utility.h>
#include <test/jtx/vault.h>
#include <xrpld/ledger/View.h>

View File

@@ -22,6 +22,7 @@
// Convenience header that includes everything
#include <test/jtx/AMM.h>
#include <test/jtx/Account.h>
#include <test/jtx/Env.h>
#include <test/jtx/Env_ss.h>

View File

@@ -17,7 +17,7 @@
*/
//==============================================================================
#include <test/jtx/mpt.h>
#include <test/jtx.h>
#include <xrpl/protocol/jss.h>

View File

@@ -17,7 +17,7 @@
*/
//==============================================================================
#include <test/jtx/permissioned_dex.h>
#include <test/jtx.h>
#include <xrpl/beast/unit_test/suite.h>
#include <xrpl/protocol/jss.h>

View File

@@ -17,7 +17,7 @@
*/
//==============================================================================
#include <test/jtx/permissioned_domains.h>
#include <test/jtx.h>
namespace ripple {
namespace test {

View File

@@ -20,7 +20,8 @@
#ifndef RIPPLE_TEST_JTX_MPT_H_INCLUDED
#define RIPPLE_TEST_JTX_MPT_H_INCLUDED
#include <test/jtx.h>
#include <test/jtx/Account.h>
#include <test/jtx/Env.h>
#include <test/jtx/ter.h>
#include <test/jtx/txflags.h>

View File

@@ -19,7 +19,9 @@
#pragma once
#include <test/jtx.h>
#include <test/jtx/Account.h>
#include <test/jtx/Env.h>
namespace ripple {
namespace test {
namespace jtx {

View File

@@ -20,7 +20,8 @@
#ifndef RIPPLE_TEST_JTX_PERMISSIONED_DOMAINS_H_INCLUDED
#define RIPPLE_TEST_JTX_PERMISSIONED_DOMAINS_H_INCLUDED
#include <test/jtx.h>
#include <test/jtx/Account.h>
#include <test/jtx/Env.h>
#include <test/jtx/deposit.h>
namespace ripple {