| 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/threading/thread.h" | 10 #include "base/threading/thread.h" |
| (...skipping 109 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 |