class TestConfigurationManager

Defined at line 14 of file ../../src/connectivity/weave/adaptation/tests/test_configuration_manager.h

Public Methods

void InitForTesting ()

Does the bare-minimum file initialization for tests. This should be used

instead of ConfigurationManager::Init() when tests invoke functions that

store data via ConfigurationManager but want to avoid accessing the

fuchsia.hwinfo and fuchsia.buildinfo FIDLs.

Defined at line 24 of file ../../src/connectivity/weave/adaptation/tests/test_configuration_manager.h

bool IsIPv6ForwardingEnabled ()

Returns whether the device is thread-enabled.

Defined at line 29 of file ../../src/connectivity/weave/adaptation/tests/test_configuration_manager.h

bool IsPairedToAccount ()

Returns whether the device is paired to an account.

Defined at line 34 of file ../../src/connectivity/weave/adaptation/tests/test_configuration_manager.h

bool IsMemberOfFabric ()

Returns whether the device is a member of a fabric.

Defined at line 39 of file ../../src/connectivity/weave/adaptation/tests/test_configuration_manager.h

bool IsThreadEnabled ()

Returns whether the device is thread-enabled.

Defined at line 44 of file ../../src/connectivity/weave/adaptation/tests/test_configuration_manager.h

zx_status_t GetPrivateKeyForSigning (std::vector<uint8_t> * signing_key)

Returns the private key for signing.

Defined at line 47 of file ../../src/connectivity/weave/adaptation/tests/test_configuration_manager.h

WEAVE_ERROR GetThreadJoinableDuration (uint32_t * duration)

Returns the thread joinable duration.

Defined at line 60 of file ../../src/connectivity/weave/adaptation/tests/test_configuration_manager.h

WEAVE_ERROR GetVendorIdDescription (char * buf, size_t buf_size, size_t & out_len)

Returns the vendor-id description.

Defined at line 69 of file ../../src/connectivity/weave/adaptation/tests/test_configuration_manager.h

WEAVE_ERROR GetProductIdDescription (char * buf, size_t buf_size, size_t & out_len)

Returns the product-id description.

Defined at line 77 of file ../../src/connectivity/weave/adaptation/tests/test_configuration_manager.h

WEAVE_ERROR GetFirmwareRevision (char * buf, size_t buf_size, size_t & out_len)

Returns the firmware revision.

Defined at line 85 of file ../../src/connectivity/weave/adaptation/tests/test_configuration_manager.h

TestConfigurationManager & set_is_ipv6_forwarding_enabled (std::optional<bool> is_ipv6_forwarding_enabled)

Set whether the device is a member of a fabric.

Defined at line 93 of file ../../src/connectivity/weave/adaptation/tests/test_configuration_manager.h

TestConfigurationManager & set_is_paired_to_account (std::optional<bool> is_paired_to_account)

Set whether the device is paired to an account.

Defined at line 100 of file ../../src/connectivity/weave/adaptation/tests/test_configuration_manager.h

TestConfigurationManager & set_is_member_of_fabric (std::optional<bool> is_member_of_fabric)

Set whether the device is a member of a fabric.

Defined at line 106 of file ../../src/connectivity/weave/adaptation/tests/test_configuration_manager.h

TestConfigurationManager & set_is_thread_enabled (std::optional<bool> is_thread_enabled)

Set whether the device is thread-enabled.

Defined at line 112 of file ../../src/connectivity/weave/adaptation/tests/test_configuration_manager.h

TestConfigurationManager & set_use_signing_key (std::optional<bool> use_signing_key)

Set whether or not to use the local private key.

Defined at line 118 of file ../../src/connectivity/weave/adaptation/tests/test_configuration_manager.h

TestConfigurationManager & set_signing_key (std::optional<std::vector<uint8_t>> signing_key)

Set the local private key when not using the fuchsia.weave.Signer protocol.

Defined at line 124 of file ../../src/connectivity/weave/adaptation/tests/test_configuration_manager.h

TestConfigurationManager & set_thread_joinable_duration (std::optional<uint32_t> thread_joinable_duration)

Set the thread joinable duration.

Defined at line 130 of file ../../src/connectivity/weave/adaptation/tests/test_configuration_manager.h

TestConfigurationManager & set_vendor_id_description (std::optional<std::string> vendor_id_description)

Set the vendor-id description.

Defined at line 137 of file ../../src/connectivity/weave/adaptation/tests/test_configuration_manager.h

TestConfigurationManager & set_product_id_description (std::optional<std::string> product_id_description)

Set the product-id description.

Defined at line 144 of file ../../src/connectivity/weave/adaptation/tests/test_configuration_manager.h

TestConfigurationManager & set_firmware_revision (std::optional<std::string> firmware_revision)

Set the firmware revision.

Defined at line 151 of file ../../src/connectivity/weave/adaptation/tests/test_configuration_manager.h