OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "remoting/host/host_config.h" | 5 #include "remoting/host/host_config.h" |
6 | 6 |
7 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" |
8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
| 9 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
10 #include "base/values.h" | 11 #include "base/values.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
12 | 13 |
13 namespace remoting { | 14 namespace remoting { |
14 | 15 |
15 namespace { | 16 namespace { |
16 | 17 |
17 const char* kTestConfig = | 18 const char* kTestConfig = |
18 "{\n" | 19 "{\n" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 EXPECT_EQ(new_refresh_token_value, value); | 93 EXPECT_EQ(new_refresh_token_value, value); |
93 EXPECT_TRUE(reader->GetString(kHostIdConfigPath, &value)); | 94 EXPECT_TRUE(reader->GetString(kHostIdConfigPath, &value)); |
94 EXPECT_EQ("TEST_HOST_ID", value); | 95 EXPECT_EQ("TEST_HOST_ID", value); |
95 EXPECT_TRUE(reader->GetString(kHostNameConfigPath, &value)); | 96 EXPECT_TRUE(reader->GetString(kHostNameConfigPath, &value)); |
96 EXPECT_EQ("TEST_MACHINE_NAME", value); | 97 EXPECT_EQ("TEST_MACHINE_NAME", value); |
97 EXPECT_TRUE(reader->GetString(kPrivateKeyConfigPath, &value)); | 98 EXPECT_TRUE(reader->GetString(kPrivateKeyConfigPath, &value)); |
98 EXPECT_EQ("TEST_PRIVATE_KEY", value); | 99 EXPECT_EQ("TEST_PRIVATE_KEY", value); |
99 } | 100 } |
100 | 101 |
101 } // namespace remoting | 102 } // namespace remoting |
OLD | NEW |