| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/file_path.h" | 5 #include "base/file_path.h" |
| 6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/memory/scoped_temp_dir.h" | 8 #include "base/memory/scoped_temp_dir.h" |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 class TestSpecialStoragePolicy : public quota::SpecialStoragePolicy { | 23 class TestSpecialStoragePolicy : public quota::SpecialStoragePolicy { |
| 24 public: | 24 public: |
| 25 virtual bool IsStorageProtected(const GURL& origin) { | 25 virtual bool IsStorageProtected(const GURL& origin) { |
| 26 return origin == GURL(kOrigin2Url); | 26 return origin == GURL(kOrigin2Url); |
| 27 } | 27 } |
| 28 | 28 |
| 29 virtual bool IsStorageUnlimited(const GURL& origin) { | 29 virtual bool IsStorageUnlimited(const GURL& origin) { |
| 30 return false; | 30 return false; |
| 31 } | 31 } |
| 32 | 32 |
| 33 virtual bool IsLocalFileSystemAccessAllowed(const GURL& origin) { | 33 virtual bool IsFileHandler(const std::string& extension_id) { |
| 34 return false; | 34 return false; |
| 35 } | 35 } |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 class TestObserver : public webkit_database::DatabaseTracker::Observer { | 38 class TestObserver : public webkit_database::DatabaseTracker::Observer { |
| 39 public: | 39 public: |
| 40 TestObserver() : new_notification_received_(false) {} | 40 TestObserver() : new_notification_received_(false) {} |
| 41 virtual ~TestObserver() {} | 41 virtual ~TestObserver() {} |
| 42 virtual void OnDatabaseSizeChanged(const string16& origin_identifier, | 42 virtual void OnDatabaseSizeChanged(const string16& origin_identifier, |
| 43 const string16& database_name, | 43 const string16& database_name, |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 | 416 |
| 417 TEST(DatabaseTrackerTest, DatabaseTracker) { | 417 TEST(DatabaseTrackerTest, DatabaseTracker) { |
| 418 DatabaseTracker_TestHelper_Test::TestDatabaseTracker(false); | 418 DatabaseTracker_TestHelper_Test::TestDatabaseTracker(false); |
| 419 } | 419 } |
| 420 | 420 |
| 421 TEST(DatabaseTrackerTest, DatabaseTrackerIncognitoMode) { | 421 TEST(DatabaseTrackerTest, DatabaseTrackerIncognitoMode) { |
| 422 DatabaseTracker_TestHelper_Test::TestDatabaseTracker(true); | 422 DatabaseTracker_TestHelper_Test::TestDatabaseTracker(true); |
| 423 } | 423 } |
| 424 | 424 |
| 425 } // namespace webkit_database | 425 } // namespace webkit_database |
| OLD | NEW |