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

Side by Side Diff: content/browser/tab_contents/navigation_entry_impl_unittest.cc

Issue 9146028: Define the public interface for content browser SiteInstance. This interface is implemented by th... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698