OLD | NEW |
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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "base/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
16 #include "net/base/completion_callback.h" | 16 #include "net/base/completion_callback.h" |
17 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
18 #include "storage/browser/database/database_quota_client.h" | 18 #include "storage/browser/database/database_quota_client.h" |
19 #include "storage/browser/database/database_tracker.h" | 19 #include "storage/browser/database/database_tracker.h" |
20 #include "storage/browser/database/database_util.h" | 20 #include "storage/browser/database/database_util.h" |
21 #include "storage/common/database/database_identifier.h" | 21 #include "storage/common/database/database_identifier.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
23 | 23 |
24 using storage::DatabaseQuotaClient; | 24 using storage::DatabaseQuotaClient; |
25 using storage::DatabaseTracker; | 25 using storage::DatabaseTracker; |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 mock_tracker()->set_async_delete(false); | 274 mock_tracker()->set_async_delete(false); |
275 EXPECT_TRUE(DeleteOriginData(&client, kTemp, kOriginA)); | 275 EXPECT_TRUE(DeleteOriginData(&client, kTemp, kOriginA)); |
276 EXPECT_EQ(1, mock_tracker()->delete_called_count()); | 276 EXPECT_EQ(1, mock_tracker()->delete_called_count()); |
277 | 277 |
278 mock_tracker()->set_async_delete(true); | 278 mock_tracker()->set_async_delete(true); |
279 EXPECT_TRUE(DeleteOriginData(&client, kTemp, kOriginA)); | 279 EXPECT_TRUE(DeleteOriginData(&client, kTemp, kOriginA)); |
280 EXPECT_EQ(2, mock_tracker()->delete_called_count()); | 280 EXPECT_EQ(2, mock_tracker()->delete_called_count()); |
281 } | 281 } |
282 | 282 |
283 } // namespace content | 283 } // namespace content |
OLD | NEW |