OLD | NEW |
| 1 // TODO(sqs): add httpsv? |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 2 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 4 // found in the LICENSE file. |
4 | 5 |
5 #include "chrome/common/content_settings_helper.h" | 6 #include "chrome/common/content_settings_helper.h" |
6 | 7 |
7 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
8 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
10 | 11 |
(...skipping 27 matching lines...) Expand all Loading... |
38 EXPECT_EQ(ASCIIToUTF16("https://www.foo.com"), | 39 EXPECT_EQ(ASCIIToUTF16("https://www.foo.com"), |
39 content_settings_helper::OriginToString16(kUrl4)); | 40 content_settings_helper::OriginToString16(kUrl4)); |
40 EXPECT_EQ(ASCIIToUTF16("https://foo.com"), | 41 EXPECT_EQ(ASCIIToUTF16("https://foo.com"), |
41 content_settings_helper::OriginToString16(kUrl5)); | 42 content_settings_helper::OriginToString16(kUrl5)); |
42 | 43 |
43 EXPECT_EQ(ASCIIToUTF16("https://www.foo.com:81"), | 44 EXPECT_EQ(ASCIIToUTF16("https://www.foo.com:81"), |
44 content_settings_helper::OriginToString16(kUrl6)); | 45 content_settings_helper::OriginToString16(kUrl6)); |
45 EXPECT_EQ(ASCIIToUTF16("https://foo.com:81"), | 46 EXPECT_EQ(ASCIIToUTF16("https://foo.com:81"), |
46 content_settings_helper::OriginToString16(kUrl7)); | 47 content_settings_helper::OriginToString16(kUrl7)); |
47 } | 48 } |
OLD | NEW |