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 #import "ios/web/history_state_util.h" | 5 #include "ios/web/history_state_util.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 #include "testing/gtest_mac.h" | 11 #import "testing/gtest_mac.h" |
12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
13 | 13 |
14 namespace web { | 14 namespace web { |
15 namespace { | 15 namespace { |
16 struct TestEntry { | 16 struct TestEntry { |
17 std::string fromUrl; | 17 std::string fromUrl; |
18 std::string toUrl; | 18 std::string toUrl; |
19 std::string expectedUrl; | 19 std::string expectedUrl; |
20 }; | 20 }; |
21 | 21 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 GURL baseUrl("http://not a url"); | 101 GURL baseUrl("http://not a url"); |
102 std::string destination = "baz"; | 102 std::string destination = "baz"; |
103 | 103 |
104 GURL result = history_state_util::GetHistoryStateChangeUrl(fromUrl, baseUrl, | 104 GURL result = history_state_util::GetHistoryStateChangeUrl(fromUrl, baseUrl, |
105 destination); | 105 destination); |
106 EXPECT_FALSE(result.is_valid()); | 106 EXPECT_FALSE(result.is_valid()); |
107 } | 107 } |
108 | 108 |
109 } // anonymous namespace | 109 } // anonymous namespace |
110 } // namespace web | 110 } // namespace web |
OLD | NEW |