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

Side by Side Diff: android_webview/browser/state_serializer_unittest.cc

Issue 2863233002: [WebView] Move files from native to browser (Closed)
Patch Set: Created 3 years, 7 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698