Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(726)

Side by Side Diff: remoting/host/third_party_auth_config_unittest.cc

Issue 2273783002: Move policy generated files to components/policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed headers Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/host/third_party_auth_config.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « remoting/host/third_party_auth_config.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698