summaryrefslogtreecommitdiff
path: root/src/components/resumption
diff options
context:
space:
mode:
authorKozoriz <kozorizandriy@gmail.com>2016-04-20 17:54:47 +0300
committerKozoriz <kozorizandriy@gmail.com>2016-04-25 16:35:16 +0300
commit72723be0357114617d87be396baba7a244a32b6e (patch)
tree07e3df82351c73f53291255bf18bcea09cf44935 /src/components/resumption
parent48f4d233ec6ee321292187df48f0adbfe1e3a52e (diff)
downloadsdl_core-72723be0357114617d87be396baba7a244a32b6e.tar.gz
Correctives after review
Diffstat (limited to 'src/components/resumption')
-rw-r--r--src/components/resumption/test/last_state_test.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/components/resumption/test/last_state_test.cc b/src/components/resumption/test/last_state_test.cc
index 1dca8bf57b..7e4d1376c9 100644
--- a/src/components/resumption/test/last_state_test.cc
+++ b/src/components/resumption/test/last_state_test.cc
@@ -58,11 +58,11 @@ class LastStateTest : public ::testing::Test {
file_system::RemoveDirectory(kAppStorageFolder);
}
- virtual void SetUp() {
+ void SetUp() OVERRIDE {
ASSERT_TRUE(file_system::CreateFile(app_info_dat_file_));
}
- virtual void TearDown() {
+ void TearDown() OVERRIDE {
EXPECT_TRUE(file_system::DeleteFile((app_info_dat_file_)));
}
@@ -73,24 +73,24 @@ class LastStateTest : public ::testing::Test {
};
TEST_F(LastStateTest, Basic) {
- Value& dictionary = last_state_.dictionary;
+ const Value& dictionary = last_state_.dictionary;
EXPECT_EQ(empty_dictionary_, dictionary.toStyledString());
}
TEST_F(LastStateTest, SetGetData) {
{
- Value& dictionary = last_state_.dictionary;
- Value& bluetooth_info = dictionary["TransportManager"]["BluetoothAdapter"];
+ const Value& dictionary = last_state_.dictionary;
+ const Value& bluetooth_info = dictionary["TransportManager"]["BluetoothAdapter"];
EXPECT_EQ(empty_dictionary_, bluetooth_info.toStyledString());
- Value& tcp_adapter_info =
+ const Value& tcp_adapter_info =
dictionary["TransportManager"]["TcpAdapter"]["devices"];
EXPECT_EQ(empty_dictionary_, tcp_adapter_info.toStyledString());
- Value& resumption_time = dictionary["resumption"]["last_ign_off_time"];
+ const Value& resumption_time = dictionary["resumption"]["last_ign_off_time"];
EXPECT_EQ("null\n", resumption_time.toStyledString());
- Value& resumption_list = dictionary["resumption"]["resume_app_list"];
+ const Value& resumption_list = dictionary["resumption"]["resume_app_list"];
EXPECT_EQ("null\n", resumption_list.toStyledString());
Value test_value;
@@ -104,10 +104,10 @@ TEST_F(LastStateTest, SetGetData) {
last_state_.SaveToFileSystem();
}
- Value& dictionary = last_state_.dictionary;
+ const Value& dictionary = last_state_.dictionary;
- Value& bluetooth_info = dictionary["TransportManager"]["BluetoothAdapter"];
- Value& tcp_adapter_info = dictionary["TransportManager"]["TcpAdapter"];
+ const Value& bluetooth_info = dictionary["TransportManager"]["BluetoothAdapter"];
+ const Value& tcp_adapter_info = dictionary["TransportManager"]["TcpAdapter"];
EXPECT_EQ("{\n \"devices\" : \"bluetooth_device\"\n}\n",
bluetooth_info.toStyledString());
EXPECT_EQ(