OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "chrome/common/cloud_print/cloud_print_helpers.h" | 5 #include "chrome/common/cloud_print/cloud_print_helpers.h" |
6 | 6 |
7 #include "base/md5.h" | 7 #include "base/md5.h" |
8 #include "base/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 #include "base/sys_info.h" | 9 #include "base/sys_info.h" |
10 #include "chrome/common/chrome_version_info.h" | 10 #include "chrome/common/chrome_version_info.h" |
11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 namespace cloud_print { | 14 namespace cloud_print { |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 void CheckURLs(const GURL& server_base_url) { | 18 void CheckURLs(const GURL& server_base_url) { |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 std::string("__test__tagshash"))); | 123 std::string("__test__tagshash"))); |
124 } | 124 } |
125 | 125 |
126 TEST(CloudPrintHelpersTest, GetCloudPrintAuthHeader) { | 126 TEST(CloudPrintHelpersTest, GetCloudPrintAuthHeader) { |
127 std::string test_auth("testauth"); | 127 std::string test_auth("testauth"); |
128 EXPECT_EQ("Authorization: OAuth testauth", | 128 EXPECT_EQ("Authorization: OAuth testauth", |
129 GetCloudPrintAuthHeader(test_auth)); | 129 GetCloudPrintAuthHeader(test_auth)); |
130 } | 130 } |
131 | 131 |
132 } // namespace cloud_print | 132 } // namespace cloud_print |
OLD | NEW |