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

Side by Side Diff: content/common/database_connections_unittest.cc

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « content/child/webblobregistry_impl.cc ('k') | content/common/database_identifier_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/message_loop/message_loop.h" 6 #include "base/message_loop/message_loop.h"
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "base/threading/thread.h" 8 #include "base/threading/thread.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "webkit/common/database/database_connections.h" 10 #include "storage/common/database/database_connections.h"
11 11
12 using base::ASCIIToUTF16; 12 using base::ASCIIToUTF16;
13 using webkit_database::DatabaseConnections; 13 using webkit_database::DatabaseConnections;
14 using webkit_database::DatabaseConnectionsWrapper; 14 using webkit_database::DatabaseConnectionsWrapper;
15 15
16 namespace content { 16 namespace content {
17 17
18 namespace { 18 namespace {
19 19
20 void RemoveConnectionTask( 20 void RemoveConnectionTask(
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 base::MessageLoop::current()->PostTask( 138 base::MessageLoop::current()->PostTask(
139 FROM_HERE, 139 FROM_HERE,
140 base::Bind(&ScheduleRemoveConnectionTask, &thread, kOriginId, kName, obj, 140 base::Bind(&ScheduleRemoveConnectionTask, &thread, kOriginId, kName, obj,
141 &did_task_execute)); 141 &did_task_execute));
142 obj->WaitForAllDatabasesToClose(); // should return after the task executes 142 obj->WaitForAllDatabasesToClose(); // should return after the task executes
143 EXPECT_TRUE(did_task_execute); 143 EXPECT_TRUE(did_task_execute);
144 EXPECT_FALSE(obj->HasOpenConnections()); 144 EXPECT_FALSE(obj->HasOpenConnections());
145 } 145 }
146 146
147 } // namespace content 147 } // namespace content
OLDNEW
« no previous file with comments | « content/child/webblobregistry_impl.cc ('k') | content/common/database_identifier_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698