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

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

Issue 356463008: Cleanup IndexedDBIO unit tests using GoogleMock. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: not exporting MockLevelDBFactory Created 6 years, 5 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "content/browser/indexed_db/indexed_db_backing_store.h" 5 #include "content/browser/indexed_db/indexed_db_backing_store.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "base/task_runner.h" 14 #include "base/task_runner.h"
15 #include "base/test/test_simple_task_runner.h" 15 #include "base/test/test_simple_task_runner.h"
16 #include "content/browser/indexed_db/indexed_db_context_impl.h" 16 #include "content/browser/indexed_db/indexed_db_context_impl.h"
17 #include "content/browser/indexed_db/indexed_db_leveldb_coding.h" 17 #include "content/browser/indexed_db/indexed_db_leveldb_coding.h"
18 #include "content/browser/indexed_db/indexed_db_value.h" 18 #include "content/browser/indexed_db/indexed_db_value.h"
19 #include "content/browser/indexed_db/leveldb/leveldb_factory.h"
19 #include "content/public/test/mock_special_storage_policy.h" 20 #include "content/public/test/mock_special_storage_policy.h"
20 #include "net/url_request/url_request_test_util.h" 21 #include "net/url_request/url_request_test_util.h"
21 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
22 #include "third_party/WebKit/public/platform/WebIDBTypes.h" 23 #include "third_party/WebKit/public/platform/WebIDBTypes.h"
23 #include "webkit/browser/blob/blob_data_handle.h" 24 #include "webkit/browser/blob/blob_data_handle.h"
24 #include "webkit/browser/quota/special_storage_policy.h" 25 #include "webkit/browser/quota/special_storage_policy.h"
25 26
26 using base::ASCIIToUTF16; 27 using base::ASCIIToUTF16;
27 28
28 namespace content { 29 namespace content {
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 EXPECT_EQ(index_name, index.name); 962 EXPECT_EQ(index_name, index.name);
962 EXPECT_EQ(index_key_path, index.key_path); 963 EXPECT_EQ(index_key_path, index.key_path);
963 EXPECT_EQ(unique, index.unique); 964 EXPECT_EQ(unique, index.unique);
964 EXPECT_EQ(multi_entry, index.multi_entry); 965 EXPECT_EQ(multi_entry, index.multi_entry);
965 } 966 }
966 } 967 }
967 968
968 } // namespace 969 } // namespace
969 970
970 } // namespace content 971 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698