| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "android_webview/native/state_serializer.h" | 5 #include "android_webview/browser/state_serializer.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/pickle.h" | 10 #include "base/pickle.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 13 #include "content/public/browser/content_browser_client.h" | 13 #include "content/public/browser/content_browser_client.h" |
| 14 #include "content/public/browser/navigation_entry.h" | 14 #include "content/public/browser/navigation_entry.h" |
| 15 #include "content/public/common/content_client.h" | 15 #include "content/public/common/content_client.h" |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 | 217 |
| 218 std::unique_ptr<content::NavigationEntry> copy( | 218 std::unique_ptr<content::NavigationEntry> copy( |
| 219 content::NavigationEntry::Create()); | 219 content::NavigationEntry::Create()); |
| 220 base::PickleIterator iterator(pickle); | 220 base::PickleIterator iterator(pickle); |
| 221 result = internal::RestoreNavigationEntryFromPickle(&iterator, copy.get()); | 221 result = internal::RestoreNavigationEntryFromPickle(&iterator, copy.get()); |
| 222 EXPECT_TRUE(result); | 222 EXPECT_TRUE(result); |
| 223 EXPECT_EQ(huge_data_url, copy->GetDataURLAsString()->data()); | 223 EXPECT_EQ(huge_data_url, copy->GetDataURLAsString()->data()); |
| 224 } | 224 } |
| 225 | 225 |
| 226 } // namespace android_webview | 226 } // namespace android_webview |
| OLD | NEW |