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

Side by Side Diff: chrome/browser/browsing_data_quota_helper_unittest.cc

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "testing/gtest/include/gtest/gtest.h" 5 #include "testing/gtest/include/gtest/gtest.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "base/scoped_temp_dir.h" 12 #include "base/scoped_temp_dir.h"
13 #include "chrome/browser/browsing_data_quota_helper_impl.h" 13 #include "chrome/browser/browsing_data_quota_helper_impl.h"
14 #include "content/test/test_browser_thread.h" 14 #include "content/public/test/test_browser_thread.h"
15 #include "webkit/quota/mock_storage_client.h" 15 #include "webkit/quota/mock_storage_client.h"
16 #include "webkit/quota/quota_manager.h" 16 #include "webkit/quota/quota_manager.h"
17 17
18 using content::BrowserThread; 18 using content::BrowserThread;
19 19
20 class BrowsingDataQuotaHelperTest : public testing::Test { 20 class BrowsingDataQuotaHelperTest : public testing::Test {
21 public: 21 public:
22 typedef BrowsingDataQuotaHelper::QuotaInfo QuotaInfo; 22 typedef BrowsingDataQuotaHelper::QuotaInfo QuotaInfo;
23 typedef BrowsingDataQuotaHelper::QuotaInfoArray QuotaInfoArray; 23 typedef BrowsingDataQuotaHelper::QuotaInfoArray QuotaInfoArray;
24 24
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 MessageLoop::current()->RunAllPending(); 200 MessageLoop::current()->RunAllPending();
201 201
202 GetPersistentHostQuota(kHost1); 202 GetPersistentHostQuota(kHost1);
203 MessageLoop::current()->RunAllPending(); 203 MessageLoop::current()->RunAllPending();
204 EXPECT_EQ(0, quota()); 204 EXPECT_EQ(0, quota());
205 205
206 GetPersistentHostQuota(kHost2); 206 GetPersistentHostQuota(kHost2);
207 MessageLoop::current()->RunAllPending(); 207 MessageLoop::current()->RunAllPending();
208 EXPECT_EQ(10, quota()); 208 EXPECT_EQ(10, quota());
209 } 209 }
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data_file_system_helper_unittest.cc ('k') | chrome/browser/browsing_data_remover_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698