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

Side by Side Diff: content/browser/indexed_db/indexed_db_factory_unittest.cc

Issue 553983013: Remove storage-related redirect headers in webkit/common/, update #includes and DEPS files to use s… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "base/files/file_util.h" 5 #include "base/files/file_util.h"
6 #include "base/files/scoped_temp_dir.h" 6 #include "base/files/scoped_temp_dir.h"
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "base/test/test_simple_task_runner.h" 10 #include "base/test/test_simple_task_runner.h"
11 #include "content/browser/indexed_db/indexed_db_connection.h" 11 #include "content/browser/indexed_db/indexed_db_connection.h"
12 #include "content/browser/indexed_db/indexed_db_context_impl.h" 12 #include "content/browser/indexed_db/indexed_db_context_impl.h"
13 #include "content/browser/indexed_db/indexed_db_factory_impl.h" 13 #include "content/browser/indexed_db/indexed_db_factory_impl.h"
14 #include "content/browser/indexed_db/mock_indexed_db_callbacks.h" 14 #include "content/browser/indexed_db/mock_indexed_db_callbacks.h"
15 #include "content/browser/indexed_db/mock_indexed_db_database_callbacks.h" 15 #include "content/browser/indexed_db/mock_indexed_db_database_callbacks.h"
16 #include "storage/common/database/database_identifier.h"
16 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
17 #include "third_party/WebKit/public/platform/WebIDBDatabaseException.h" 18 #include "third_party/WebKit/public/platform/WebIDBDatabaseException.h"
18 #include "third_party/WebKit/public/platform/WebIDBTypes.h" 19 #include "third_party/WebKit/public/platform/WebIDBTypes.h"
19 #include "url/gurl.h" 20 #include "url/gurl.h"
20 #include "webkit/common/database/database_identifier.h"
21 21
22 using base::ASCIIToUTF16; 22 using base::ASCIIToUTF16;
23 23
24 namespace content { 24 namespace content {
25 25
26 namespace { 26 namespace {
27 27
28 class MockIDBFactory : public IndexedDBFactoryImpl { 28 class MockIDBFactory : public IndexedDBFactoryImpl {
29 public: 29 public:
30 explicit MockIDBFactory(IndexedDBContextImpl* context) 30 explicit MockIDBFactory(IndexedDBContextImpl* context)
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 temp_directory.path()); 523 temp_directory.path());
524 EXPECT_TRUE(callbacks->saw_error()); 524 EXPECT_TRUE(callbacks->saw_error());
525 EXPECT_FALSE(factory()->IsDatabaseOpen(origin, db_name)); 525 EXPECT_FALSE(factory()->IsDatabaseOpen(origin, db_name));
526 } 526 }
527 527
528 // Terminate all pending-close timers. 528 // Terminate all pending-close timers.
529 factory()->ForceClose(origin); 529 factory()->ForceClose(origin);
530 } 530 }
531 531
532 } // namespace content 532 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_factory_impl.cc ('k') | content/browser/indexed_db/indexed_db_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698