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

Side by Side Diff: webkit/quota/quota_manager_unittest.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 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 <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"
(...skipping 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after
1361 const int64 predelete_global_tmp = usage(); 1361 const int64 predelete_global_tmp = usage();
1362 1362
1363 GetHostUsage("foo.com", kTemp); 1363 GetHostUsage("foo.com", kTemp);
1364 MessageLoop::current()->RunUntilIdle(); 1364 MessageLoop::current()->RunUntilIdle();
1365 int64 predelete_host_tmp = usage(); 1365 int64 predelete_host_tmp = usage();
1366 1366
1367 GetHostUsage("foo.com", kPerm); 1367 GetHostUsage("foo.com", kPerm);
1368 MessageLoop::current()->RunUntilIdle(); 1368 MessageLoop::current()->RunUntilIdle();
1369 int64 predelete_host_pers = usage(); 1369 int64 predelete_host_pers = usage();
1370 1370
1371 DeleteHostData("", kTemp, kAllClients); 1371 DeleteHostData(std::string(), kTemp, kAllClients);
1372 MessageLoop::current()->RunUntilIdle(); 1372 MessageLoop::current()->RunUntilIdle();
1373 EXPECT_EQ(kQuotaStatusOk, status()); 1373 EXPECT_EQ(kQuotaStatusOk, status());
1374 1374
1375 GetGlobalUsage(kTemp); 1375 GetGlobalUsage(kTemp);
1376 MessageLoop::current()->RunUntilIdle(); 1376 MessageLoop::current()->RunUntilIdle();
1377 EXPECT_EQ(predelete_global_tmp, usage()); 1377 EXPECT_EQ(predelete_global_tmp, usage());
1378 1378
1379 GetHostUsage("foo.com", kTemp); 1379 GetHostUsage("foo.com", kTemp);
1380 MessageLoop::current()->RunUntilIdle(); 1380 MessageLoop::current()->RunUntilIdle();
1381 EXPECT_EQ(predelete_host_tmp, usage()); 1381 EXPECT_EQ(predelete_host_tmp, usage());
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
2048 EXPECT_EQ(predelete_foo_tmp - 2 - 1, usage()); 2048 EXPECT_EQ(predelete_foo_tmp - 2 - 1, usage());
2049 2049
2050 DeleteHostData("foo.com", kTemp, 2050 DeleteHostData("foo.com", kTemp,
2051 QuotaClient::kDatabase | QuotaClient::kIndexedDatabase); 2051 QuotaClient::kDatabase | QuotaClient::kIndexedDatabase);
2052 MessageLoop::current()->RunUntilIdle(); 2052 MessageLoop::current()->RunUntilIdle();
2053 GetHostUsage("foo.com", kTemp); 2053 GetHostUsage("foo.com", kTemp);
2054 MessageLoop::current()->RunUntilIdle(); 2054 MessageLoop::current()->RunUntilIdle();
2055 EXPECT_EQ(predelete_foo_tmp - 8 - 4 - 2 - 1, usage()); 2055 EXPECT_EQ(predelete_foo_tmp - 8 - 4 - 2 - 1, usage());
2056 } 2056 }
2057 } // namespace quota 2057 } // namespace quota
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/content_decryptor_delegate.cc ('k') | webkit/tools/test_shell/test_shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698