OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/string16.h" | 5 #include "base/string16.h" |
6 #include "base/string_util.h" | 6 #include "base/string_util.h" |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "content/browser/site_instance.h" | 8 #include "content/browser/site_instance_impl.h" |
9 #include "content/browser/tab_contents/navigation_entry_impl.h" | 9 #include "content/browser/tab_contents/navigation_entry_impl.h" |
10 #include "content/public/browser/ssl_status.h" | 10 #include "content/public/browser/ssl_status.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 class NavigationEntryTest : public testing::Test { | 15 class NavigationEntryTest : public testing::Test { |
16 public: | 16 public: |
17 NavigationEntryTest() : instance_(NULL) { | 17 NavigationEntryTest() : instance_(NULL) { |
18 } | 18 } |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 EXPECT_TRUE(entry2_.get()->GetHasPostData()); | 169 EXPECT_TRUE(entry2_.get()->GetHasPostData()); |
170 | 170 |
171 // Restored | 171 // Restored |
172 EXPECT_EQ(NavigationEntryImpl::RESTORE_NONE, entry1_->restore_type()); | 172 EXPECT_EQ(NavigationEntryImpl::RESTORE_NONE, entry1_->restore_type()); |
173 EXPECT_EQ(NavigationEntryImpl::RESTORE_NONE, entry2_->restore_type()); | 173 EXPECT_EQ(NavigationEntryImpl::RESTORE_NONE, entry2_->restore_type()); |
174 entry2_->set_restore_type(NavigationEntryImpl::RESTORE_LAST_SESSION); | 174 entry2_->set_restore_type(NavigationEntryImpl::RESTORE_LAST_SESSION); |
175 EXPECT_EQ(NavigationEntryImpl::RESTORE_LAST_SESSION, entry2_->restore_type()); | 175 EXPECT_EQ(NavigationEntryImpl::RESTORE_LAST_SESSION, entry2_->restore_type()); |
176 } | 176 } |
177 | 177 |
178 } // namespace content | 178 } // namespace content |
OLD | NEW |