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

Side by Side Diff: ios/web/history_state_util_unittest.mm

Issue 2934083002: [ObjC ARC] Converts ios/web:ios_web_general_unittests to ARC. (Closed)
Patch Set: Created 3 years, 6 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 | « ios/web/active_state_manager_impl_unittest.mm ('k') | ios/web/test/web_test_unittest.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "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 #import "testing/gtest_mac.h" 11 #import "testing/gtest_mac.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 #if !defined(__has_feature) || !__has_feature(objc_arc)
15 #error "This file requires ARC support."
16 #endif
17
14 namespace web { 18 namespace web {
15 namespace { 19 namespace {
16 struct TestEntry { 20 struct TestEntry {
17 std::string fromUrl; 21 std::string fromUrl;
18 std::string toUrl; 22 std::string toUrl;
19 std::string expectedUrl; 23 std::string expectedUrl;
20 }; 24 };
21 25
22 class HistoryStateUtilTest : public ::testing::Test { 26 class HistoryStateUtilTest : public ::testing::Test {
23 protected: 27 protected:
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 GURL baseUrl("http://not a url"); 105 GURL baseUrl("http://not a url");
102 std::string destination = "baz"; 106 std::string destination = "baz";
103 107
104 GURL result = history_state_util::GetHistoryStateChangeUrl(fromUrl, baseUrl, 108 GURL result = history_state_util::GetHistoryStateChangeUrl(fromUrl, baseUrl,
105 destination); 109 destination);
106 EXPECT_FALSE(result.is_valid()); 110 EXPECT_FALSE(result.is_valid());
107 } 111 }
108 112
109 } // anonymous namespace 113 } // anonymous namespace
110 } // namespace web 114 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/active_state_manager_impl_unittest.mm ('k') | ios/web/test/web_test_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698