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