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

Side by Side Diff: content/browser/dom_storage/local_storage_context_mojo_unittest.cc

Issue 2844063003: Migrate RenderFrameImpl to use BinderRegistry. (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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "content/browser/dom_storage/local_storage_context_mojo.h" 5 #include "content/browser/dom_storage/local_storage_context_mojo.h"
6 6
7 #include "base/files/file_enumerator.h" 7 #include "base/files/file_enumerator.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "components/filesystem/public/interfaces/file_system.mojom.h" 11 #include "components/filesystem/public/interfaces/file_system.mojom.h"
12 #include "components/leveldb/public/cpp/util.h" 12 #include "components/leveldb/public/cpp/util.h"
13 #include "content/browser/dom_storage/dom_storage_area.h" 13 #include "content/browser/dom_storage/dom_storage_area.h"
14 #include "content/browser/dom_storage/dom_storage_context_impl.h" 14 #include "content/browser/dom_storage/dom_storage_context_impl.h"
15 #include "content/browser/dom_storage/dom_storage_namespace.h" 15 #include "content/browser/dom_storage/dom_storage_namespace.h"
16 #include "content/browser/dom_storage/dom_storage_task_runner.h" 16 #include "content/browser/dom_storage/dom_storage_task_runner.h"
17 #include "content/common/dom_storage/dom_storage_types.h" 17 #include "content/common/dom_storage/dom_storage_types.h"
18 #include "content/public/browser/browser_thread.h" 18 #include "content/public/browser/browser_thread.h"
19 #include "content/public/browser/local_storage_usage_info.h" 19 #include "content/public/browser/local_storage_usage_info.h"
20 #include "content/public/test/test_browser_thread_bundle.h" 20 #include "content/public/test/test_browser_thread_bundle.h"
21 #include "content/test/mock_leveldb_database.h" 21 #include "content/test/mock_leveldb_database.h"
22 #include "mojo/public/cpp/bindings/associated_binding.h" 22 #include "mojo/public/cpp/bindings/associated_binding.h"
23 #include "mojo/public/cpp/bindings/binding.h" 23 #include "mojo/public/cpp/bindings/binding.h"
24 #include "mojo/public/cpp/bindings/binding_set.h" 24 #include "mojo/public/cpp/bindings/binding_set.h"
25 #include "services/file/file_service.h" 25 #include "services/file/file_service.h"
26 #include "services/file/public/interfaces/constants.mojom.h" 26 #include "services/file/public/interfaces/constants.mojom.h"
27 #include "services/file/user_id_map.h" 27 #include "services/file/user_id_map.h"
28 #include "services/service_manager/public/cpp/interface_factory.h" 28 #include "services/service_manager/public/cpp/interface_factory.h"
29 #include "services/service_manager/public/cpp/interface_registry.h"
30 #include "services/service_manager/public/cpp/service_context.h" 29 #include "services/service_manager/public/cpp/service_context.h"
31 #include "services/service_manager/public/cpp/service_test.h" 30 #include "services/service_manager/public/cpp/service_test.h"
32 #include "services/service_manager/public/interfaces/service_factory.mojom.h" 31 #include "services/service_manager/public/interfaces/service_factory.mojom.h"
33 #include "testing/gtest/include/gtest/gtest.h" 32 #include "testing/gtest/include/gtest/gtest.h"
34 #include "third_party/leveldatabase/env_chromium.h" 33 #include "third_party/leveldatabase/env_chromium.h"
35 #include "third_party/leveldatabase/src/include/leveldb/db.h" 34 #include "third_party/leveldatabase/src/include/leveldb/db.h"
36 35
37 using leveldb::StdStringToUint8Vector; 36 using leveldb::StdStringToUint8Vector;
38 using leveldb::Uint8VectorToStdString; 37 using leveldb::Uint8VectorToStdString;
39 38
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 base::RunLoop().RunUntilIdle(); 840 base::RunLoop().RunUntilIdle();
842 841
843 // Data should have been preserved now. 842 // Data should have been preserved now.
844 context = base::MakeUnique<LocalStorageContextMojo>( 843 context = base::MakeUnique<LocalStorageContextMojo>(
845 connector(), nullptr, base::FilePath(), test_path); 844 connector(), nullptr, base::FilePath(), test_path);
846 EXPECT_TRUE(DoTestGet(context.get(), key, &result)); 845 EXPECT_TRUE(DoTestGet(context.get(), key, &result));
847 EXPECT_EQ(value, result); 846 EXPECT_EQ(value, result);
848 } 847 }
849 848
850 } // namespace content 849 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698