| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "base/string16.h" | 5 #include "base/string16.h" |
| 6 #include "base/string_util.h" | 6 #include "base/string_util.h" |
| 7 #include "base/strings/utf_string_conversions.h" |
| 7 #include "base/time.h" | 8 #include "base/time.h" |
| 8 #include "base/utf_string_conversions.h" | |
| 9 #include "content/browser/site_instance_impl.h" | 9 #include "content/browser/site_instance_impl.h" |
| 10 #include "content/browser/web_contents/navigation_entry_impl.h" | 10 #include "content/browser/web_contents/navigation_entry_impl.h" |
| 11 #include "content/public/common/ssl_status.h" | 11 #include "content/public/common/ssl_status.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | 15 |
| 16 class NavigationEntryTest : public testing::Test { | 16 class NavigationEntryTest : public testing::Test { |
| 17 public: | 17 public: |
| 18 NavigationEntryTest() : instance_(NULL) { | 18 NavigationEntryTest() : instance_(NULL) { |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 // Content in |output| is not modified if data is not present at the key. | 232 // Content in |output| is not modified if data is not present at the key. |
| 233 EXPECT_FALSE(entry1_->GetExtraData("search_terms", &output)); | 233 EXPECT_FALSE(entry1_->GetExtraData("search_terms", &output)); |
| 234 EXPECT_EQ(test_data, output); | 234 EXPECT_EQ(test_data, output); |
| 235 // Using an empty string shows that the data is not present in the map. | 235 // Using an empty string shows that the data is not present in the map. |
| 236 string16 output2; | 236 string16 output2; |
| 237 EXPECT_FALSE(entry1_->GetExtraData("search_terms", &output2)); | 237 EXPECT_FALSE(entry1_->GetExtraData("search_terms", &output2)); |
| 238 EXPECT_EQ(ASCIIToUTF16(""), output2); | 238 EXPECT_EQ(ASCIIToUTF16(""), output2); |
| 239 } | 239 } |
| 240 | 240 |
| 241 } // namespace content | 241 } // namespace content |
| OLD | NEW |