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

Unified Diff: content/browser/renderer_host/pepper/quota_reservation_unittest.cc

Issue 345673002: Fully qualify all references to fileapi::FileSystemType (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix FileSystemType instances I missed Created 6 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/pepper/quota_reservation_unittest.cc
diff --git a/content/browser/renderer_host/pepper/quota_reservation_unittest.cc b/content/browser/renderer_host/pepper/quota_reservation_unittest.cc
index 05eb4bf19a469e7ed8c865324dad50c4449a59bc..e949074efb806c5b440aa4dbb1d9794c00895b9b 100644
--- a/content/browser/renderer_host/pepper/quota_reservation_unittest.cc
+++ b/content/browser/renderer_host/pepper/quota_reservation_unittest.cc
@@ -14,7 +14,6 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "webkit/browser/fileapi/quota/quota_reservation.h"
-using fileapi::FileSystemType;
using fileapi::QuotaReservationManager;
namespace content {
@@ -22,7 +21,7 @@ namespace content {
namespace {
const char kOrigin[] = "http://example.com";
-const FileSystemType kType = fileapi::kFileSystemTypeTemporary;
+const fileapi::FileSystemType kType = fileapi::kFileSystemTypeTemporary;
const base::FilePath::StringType file1_name = FILE_PATH_LITERAL("file1");
const base::FilePath::StringType file2_name = FILE_PATH_LITERAL("file2");
@@ -38,7 +37,7 @@ class FakeBackend : public QuotaReservationManager::QuotaBackend {
virtual void ReserveQuota(
const GURL& origin,
- FileSystemType type,
+ fileapi::FileSystemType type,
int64 delta,
const QuotaReservationManager::ReserveQuotaCallback& callback) OVERRIDE {
base::MessageLoopProxy::current()->PostTask(
@@ -47,17 +46,17 @@ class FakeBackend : public QuotaReservationManager::QuotaBackend {
}
virtual void ReleaseReservedQuota(const GURL& origin,
- FileSystemType type,
+ fileapi::FileSystemType type,
int64 size) OVERRIDE {}
virtual void CommitQuotaUsage(const GURL& origin,
- FileSystemType type,
+ fileapi::FileSystemType type,
int64 delta) OVERRIDE {}
virtual void IncrementDirtyCount(const GURL& origin,
- FileSystemType type) OVERRIDE {}
+ fileapi::FileSystemType type) OVERRIDE {}
virtual void DecrementDirtyCount(const GURL& origin,
- FileSystemType type) OVERRIDE {}
+ fileapi::FileSystemType type) OVERRIDE {}
private:
DISALLOW_COPY_AND_ASSIGN(FakeBackend);
@@ -95,7 +94,7 @@ class QuotaReservationTest : public testing::Test {
scoped_refptr<QuotaReservation> CreateQuotaReservation(
scoped_refptr<fileapi::QuotaReservation> reservation,
const GURL& origin,
- FileSystemType type) {
+ fileapi::FileSystemType type) {
// Sets reservation_ as a side effect.
return scoped_refptr<QuotaReservation>(
new QuotaReservation(reservation, origin, type));
@@ -149,7 +148,7 @@ void ReserveQuota(scoped_refptr<QuotaReservation> quota_reservation,
// 2) Open a file, grow it, close it, and reserve quota with correct sizes.
TEST_F(QuotaReservationTest, ReserveQuota) {
GURL origin(kOrigin);
- FileSystemType type = kType;
+ fileapi::FileSystemType type = kType;
scoped_refptr<fileapi::QuotaReservation> reservation(
reservation_manager()->CreateReservation(origin, type));
@@ -190,7 +189,7 @@ TEST_F(QuotaReservationTest, ReserveQuota) {
// 1) We can open and close multiple files.
TEST_F(QuotaReservationTest, MultipleFiles) {
GURL origin(kOrigin);
- FileSystemType type = kType;
+ fileapi::FileSystemType type = kType;
scoped_refptr<fileapi::QuotaReservation> reservation(
reservation_manager()->CreateReservation(origin, type));
« no previous file with comments | « content/browser/quota/quota_reservation_manager_unittest.cc ('k') | content/common/fileapi/file_system_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698