diff options
Diffstat (limited to 'src/components/resumption/test/last_state_test.cc')
-rw-r--r-- | src/components/resumption/test/last_state_test.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/components/resumption/test/last_state_test.cc b/src/components/resumption/test/last_state_test.cc index c82af2450c..61c227bbf3 100644 --- a/src/components/resumption/test/last_state_test.cc +++ b/src/components/resumption/test/last_state_test.cc @@ -73,13 +73,13 @@ class LastStateTest : public ::testing::Test { }; TEST_F(LastStateTest, Basic) { - const Value& dictionary = last_state_.get_dictionary(); + const Value& dictionary = last_state_.dictionary(); EXPECT_EQ(empty_dictionary_, dictionary.toStyledString()); } TEST_F(LastStateTest, SetGetData) { { - Value& dictionary = last_state_.get_dictionary(); + Value dictionary = last_state_.dictionary(); const Value& bluetooth_info = dictionary["TransportManager"]["BluetoothAdapter"]; EXPECT_EQ(empty_dictionary_, bluetooth_info.toStyledString()); @@ -102,10 +102,11 @@ TEST_F(LastStateTest, SetGetData) { dictionary["TransportManager"]["BluetoothAdapter"]["devices"] = "bluetooth_device"; - last_state_.SaveStateToFileSystem(); + last_state_.set_dictionary(dictionary); + last_state_.SaveToFileSystem(); } - const Value& dictionary = last_state_.get_dictionary(); + const Value dictionary = last_state_.dictionary(); const Value& bluetooth_info = dictionary["TransportManager"]["BluetoothAdapter"]; |