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 <set> | 5 #include <set> |
6 #include <sstream> | 6 #include <sstream> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
15 #include "base/message_loop_proxy.h" | 15 #include "base/message_loop/message_loop_proxy.h" |
16 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
17 #include "base/sys_info.h" | 17 #include "base/sys_info.h" |
18 #include "base/time.h" | 18 #include "base/time.h" |
19 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 #include "webkit/browser/quota/mock_special_storage_policy.h" | 21 #include "webkit/browser/quota/mock_special_storage_policy.h" |
22 #include "webkit/browser/quota/mock_storage_client.h" | 22 #include "webkit/browser/quota/mock_storage_client.h" |
23 #include "webkit/browser/quota/quota_database.h" | 23 #include "webkit/browser/quota/quota_database.h" |
24 #include "webkit/browser/quota/quota_manager.h" | 24 #include "webkit/browser/quota/quota_manager.h" |
25 | 25 |
(...skipping 2129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2155 EXPECT_EQ(QuotaManager::kIncognitoDefaultQuotaLimit, quota()); | 2155 EXPECT_EQ(QuotaManager::kIncognitoDefaultQuotaLimit, quota()); |
2156 | 2156 |
2157 GetUsageAndQuotaForWebApps(GURL("http://foo.com/"), kTemp); | 2157 GetUsageAndQuotaForWebApps(GURL("http://foo.com/"), kTemp); |
2158 base::MessageLoop::current()->RunUntilIdle(); | 2158 base::MessageLoop::current()->RunUntilIdle(); |
2159 EXPECT_EQ(kQuotaStatusOk, status()); | 2159 EXPECT_EQ(kQuotaStatusOk, status()); |
2160 EXPECT_EQ(10, usage()); | 2160 EXPECT_EQ(10, usage()); |
2161 EXPECT_EQ(QuotaManager::kIncognitoDefaultQuotaLimit, quota()); | 2161 EXPECT_EQ(QuotaManager::kIncognitoDefaultQuotaLimit, quota()); |
2162 } | 2162 } |
2163 | 2163 |
2164 } // namespace quota | 2164 } // namespace quota |
OLD | NEW |