OLD | NEW |
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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
16 #include "base/thread_task_runner_handle.h" | |
17 #include "base/threading/sequenced_worker_pool.h" | 16 #include "base/threading/sequenced_worker_pool.h" |
| 17 #include "base/threading/thread_task_runner_handle.h" |
18 #include "base/time/time.h" | 18 #include "base/time/time.h" |
19 #include "content/browser/dom_storage/dom_storage_area.h" | 19 #include "content/browser/dom_storage/dom_storage_area.h" |
20 #include "content/browser/dom_storage/dom_storage_database.h" | 20 #include "content/browser/dom_storage/dom_storage_database.h" |
21 #include "content/browser/dom_storage/dom_storage_database_adapter.h" | 21 #include "content/browser/dom_storage/dom_storage_database_adapter.h" |
22 #include "content/browser/dom_storage/dom_storage_task_runner.h" | 22 #include "content/browser/dom_storage/dom_storage_task_runner.h" |
23 #include "content/browser/dom_storage/local_storage_database_adapter.h" | 23 #include "content/browser/dom_storage/local_storage_database_adapter.h" |
24 #include "content/common/dom_storage/dom_storage_types.h" | 24 #include "content/common/dom_storage/dom_storage_types.h" |
25 #include "content/public/browser/browser_thread.h" | 25 #include "content/public/browser/browser_thread.h" |
26 #include "testing/gtest/include/gtest/gtest.h" | 26 #include "testing/gtest/include/gtest/gtest.h" |
27 | 27 |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 base::TimeDelta::FromMilliseconds(750))); | 529 base::TimeDelta::FromMilliseconds(750))); |
530 EXPECT_EQ(base::TimeDelta(), | 530 EXPECT_EQ(base::TimeDelta(), |
531 rate_limiter.ComputeDelayNeeded( | 531 rate_limiter.ComputeDelayNeeded( |
532 base::TimeDelta::FromMilliseconds(1500))); | 532 base::TimeDelta::FromMilliseconds(1500))); |
533 EXPECT_EQ(base::TimeDelta(), | 533 EXPECT_EQ(base::TimeDelta(), |
534 rate_limiter.ComputeDelayNeeded( | 534 rate_limiter.ComputeDelayNeeded( |
535 base::TimeDelta::FromDays(1))); | 535 base::TimeDelta::FromDays(1))); |
536 } | 536 } |
537 | 537 |
538 } // namespace content | 538 } // namespace content |
OLD | NEW |