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

Side by Side Diff: chrome/browser/extensions/app_data_migrator_unittest.cc

Issue 2368913003: Populate storage_unittests target. (Closed)
Patch Set: Removed unnecessary include from storage/browser/blob/blob_storage_context_unittest.cc. Created 4 years, 2 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 <stdint.h> 5 #include <stdint.h>
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "base/run_loop.h" 11 #include "base/run_loop.h"
12 #include "base/threading/sequenced_worker_pool.h" 12 #include "base/threading/sequenced_worker_pool.h"
13 #include "base/threading/thread_task_runner_handle.h" 13 #include "base/threading/thread_task_runner_handle.h"
14 #include "chrome/browser/extensions/app_data_migrator.h" 14 #include "chrome/browser/extensions/app_data_migrator.h"
15 #include "chrome/browser/extensions/extension_special_storage_policy.h" 15 #include "chrome/browser/extensions/extension_special_storage_policy.h"
16 #include "chrome/test/base/testing_profile.h" 16 #include "chrome/test/base/testing_profile.h"
17 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
18 #include "content/public/browser/indexed_db_context.h" 18 #include "content/public/browser/indexed_db_context.h"
19 #include "content/public/browser/storage_partition.h" 19 #include "content/public/browser/storage_partition.h"
20 #include "content/public/test/mock_blob_url_request_context.h"
21 #include "content/public/test/test_browser_thread_bundle.h" 20 #include "content/public/test/test_browser_thread_bundle.h"
22 #include "extensions/browser/extension_registry.h" 21 #include "extensions/browser/extension_registry.h"
23 #include "extensions/common/extension.h" 22 #include "extensions/common/extension.h"
24 #include "extensions/common/extension_builder.h" 23 #include "extensions/common/extension_builder.h"
25 #include "extensions/common/manifest.h" 24 #include "extensions/common/manifest.h"
26 #include "storage/browser/fileapi/file_system_context.h" 25 #include "storage/browser/fileapi/file_system_context.h"
27 #include "storage/browser/fileapi/file_system_operation_runner.h" 26 #include "storage/browser/fileapi/file_system_operation_runner.h"
28 #include "storage/browser/fileapi/file_system_url.h" 27 #include "storage/browser/fileapi/file_system_url.h"
28 #include "storage/browser/test/mock_blob_url_request_context.h"
29 #include "testing/gtest/include/gtest/gtest.h" 29 #include "testing/gtest/include/gtest/gtest.h"
30 30
31 namespace { 31 namespace {
32 std::unique_ptr<TestingProfile> GetTestingProfile() { 32 std::unique_ptr<TestingProfile> GetTestingProfile() {
33 TestingProfile::Builder profile_builder; 33 TestingProfile::Builder profile_builder;
34 return profile_builder.Build(); 34 return profile_builder.Build();
35 } 35 }
36 } 36 }
37 37
38 namespace extensions { 38 namespace extensions {
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 content::StoragePartition* new_partition = 277 content::StoragePartition* new_partition =
278 content::BrowserContext::GetStoragePartitionForSite(profile_.get(), 278 content::BrowserContext::GetStoragePartitionForSite(profile_.get(),
279 extension_url); 279 extension_url);
280 280
281 ASSERT_NE(new_partition->GetPath(), default_partition_->GetPath()); 281 ASSERT_NE(new_partition->GetPath(), default_partition_->GetPath());
282 282
283 VerifyTestFilesMigrated(new_partition, new_ext.get()); 283 VerifyTestFilesMigrated(new_partition, new_ext.get());
284 } 284 }
285 285
286 } // namespace extensions 286 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698