OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/third_party_auth_config.h" | 5 #include "remoting/host/third_party_auth_config.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "policy/policy_constants.h" | 10 #include "components/policy/policy_constants.h" |
11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 namespace remoting { | 14 namespace remoting { |
15 | 15 |
16 namespace key = ::policy::key; | 16 namespace key = ::policy::key; |
17 | 17 |
18 TEST(ThirdPartyAuthConfig, ParseEmpty) { | 18 TEST(ThirdPartyAuthConfig, ParseEmpty) { |
19 ThirdPartyAuthConfig third_party_auth_config; | 19 ThirdPartyAuthConfig third_party_auth_config; |
20 | 20 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 185 |
186 std::ostringstream str; | 186 std::ostringstream str; |
187 str << third_party_auth_config; | 187 str << third_party_auth_config; |
188 | 188 |
189 EXPECT_THAT(str.str(), testing::HasSubstr("token")); | 189 EXPECT_THAT(str.str(), testing::HasSubstr("token")); |
190 EXPECT_THAT(str.str(), testing::HasSubstr("validation")); | 190 EXPECT_THAT(str.str(), testing::HasSubstr("validation")); |
191 EXPECT_THAT(str.str(), testing::HasSubstr("certificate subject")); | 191 EXPECT_THAT(str.str(), testing::HasSubstr("certificate subject")); |
192 } | 192 } |
193 | 193 |
194 } // namespace remoting | 194 } // namespace remoting |
OLD | NEW |