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

Side by Side Diff: chrome/browser/tab_contents/navigation_entry_unittest.cc

Issue 3058027: Add #include utf_string_conversions.h to all files that use ASCIIToWide and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/renderer_host/site_instance.h" 8 #include "chrome/browser/renderer_host/site_instance.h"
8 #include "chrome/browser/tab_contents/navigation_entry.h" 9 #include "chrome/browser/tab_contents/navigation_entry.h"
9 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
10 11
11 class NavigationEntryTest : public testing::Test { 12 class NavigationEntryTest : public testing::Test {
12 public: 13 public:
13 NavigationEntryTest() : instance_(NULL) { 14 NavigationEntryTest() : instance_(NULL) {
14 } 15 }
15 16
16 virtual void SetUp() { 17 virtual void SetUp() {
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 EXPECT_FALSE(entry2_.get()->has_post_data()); 174 EXPECT_FALSE(entry2_.get()->has_post_data());
174 entry2_.get()->set_has_post_data(true); 175 entry2_.get()->set_has_post_data(true);
175 EXPECT_TRUE(entry2_.get()->has_post_data()); 176 EXPECT_TRUE(entry2_.get()->has_post_data());
176 177
177 // Restored 178 // Restored
178 EXPECT_EQ(NavigationEntry::RESTORE_NONE, entry1_->restore_type()); 179 EXPECT_EQ(NavigationEntry::RESTORE_NONE, entry1_->restore_type());
179 EXPECT_EQ(NavigationEntry::RESTORE_NONE, entry2_->restore_type()); 180 EXPECT_EQ(NavigationEntry::RESTORE_NONE, entry2_->restore_type());
180 entry2_->set_restore_type(NavigationEntry::RESTORE_LAST_SESSION); 181 entry2_->set_restore_type(NavigationEntry::RESTORE_LAST_SESSION);
181 EXPECT_EQ(NavigationEntry::RESTORE_LAST_SESSION, entry2_->restore_type()); 182 EXPECT_EQ(NavigationEntry::RESTORE_LAST_SESSION, entry2_->restore_type());
182 } 183 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/navigation_controller_unittest.cc ('k') | chrome/browser/tab_contents/web_contents_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698