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 "base/bind.h" | 7 #include "base/bind.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/thread_task_runner_handle.h" | |
11 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
| 11 #include "base/threading/thread_task_runner_handle.h" |
12 #include "storage/common/database/database_connections.h" | 12 #include "storage/common/database/database_connections.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 using base::ASCIIToUTF16; | 15 using base::ASCIIToUTF16; |
16 using storage::DatabaseConnections; | 16 using storage::DatabaseConnections; |
17 using storage::DatabaseConnectionsWrapper; | 17 using storage::DatabaseConnectionsWrapper; |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 namespace { | 21 namespace { |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 FROM_HERE, base::Bind(&RemoveConnectionTask, kOriginId, kName, obj, | 120 FROM_HERE, base::Bind(&RemoveConnectionTask, kOriginId, kName, obj, |
121 &did_task_execute)); | 121 &did_task_execute)); |
122 // Use a long timeout value to avoid timeouts on test bots. | 122 // Use a long timeout value to avoid timeouts on test bots. |
123 EXPECT_TRUE(obj->WaitForAllDatabasesToClose( | 123 EXPECT_TRUE(obj->WaitForAllDatabasesToClose( |
124 base::TimeDelta::FromSeconds(15))); | 124 base::TimeDelta::FromSeconds(15))); |
125 EXPECT_TRUE(did_task_execute); | 125 EXPECT_TRUE(did_task_execute); |
126 EXPECT_FALSE(obj->HasOpenConnections()); | 126 EXPECT_FALSE(obj->HasOpenConnections()); |
127 } | 127 } |
128 | 128 |
129 } // namespace content | 129 } // namespace content |
OLD | NEW |