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

Side by Side Diff: content/browser/service_worker/service_worker_cache_storage_manager_unittest.cc

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 | Annotate | Revision Log
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 "content/browser/service_worker/service_worker_cache_storage_manager.h" 5 #include "content/browser/service_worker/service_worker_cache_storage_manager.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "content/browser/fileapi/chrome_blob_storage_context.h" 11 #include "content/browser/fileapi/chrome_blob_storage_context.h"
12 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
13 #include "content/public/test/test_browser_context.h" 13 #include "content/public/test/test_browser_context.h"
14 #include "content/public/test/test_browser_thread_bundle.h" 14 #include "content/public/test/test_browser_thread_bundle.h"
15 #include "net/url_request/url_request_context_getter.h" 15 #include "net/url_request/url_request_context_getter.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 #include "webkit/browser/blob/blob_storage_context.h" 17 #include "storage/browser/blob/blob_storage_context.h"
18 18
19 namespace content { 19 namespace content {
20 20
21 class ServiceWorkerCacheStorageManagerTest : public testing::Test { 21 class ServiceWorkerCacheStorageManagerTest : public testing::Test {
22 protected: 22 protected:
23 ServiceWorkerCacheStorageManagerTest() 23 ServiceWorkerCacheStorageManagerTest()
24 : browser_thread_bundle_(TestBrowserThreadBundle::IO_MAINLOOP), 24 : browser_thread_bundle_(TestBrowserThreadBundle::IO_MAINLOOP),
25 callback_bool_(false), 25 callback_bool_(false),
26 callback_cache_id_(0), 26 callback_cache_id_(0),
27 callback_error_( 27 callback_error_(
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 EXPECT_TRUE(Keys(bad_origin)); 368 EXPECT_TRUE(Keys(bad_origin));
369 EXPECT_EQ(1u, callback_strings_.size()); 369 EXPECT_EQ(1u, callback_strings_.size());
370 EXPECT_STREQ("foo", callback_strings_[0].c_str()); 370 EXPECT_STREQ("foo", callback_strings_[0].c_str());
371 } 371 }
372 372
373 INSTANTIATE_TEST_CASE_P(ServiceWorkerCacheStorageManagerTests, 373 INSTANTIATE_TEST_CASE_P(ServiceWorkerCacheStorageManagerTests,
374 ServiceWorkerCacheStorageManagerTestP, 374 ServiceWorkerCacheStorageManagerTestP,
375 ::testing::Values(false, true)); 375 ::testing::Values(false, true));
376 376
377 } // namespace content 377 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698