| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/scoped_ptr.h" | 7 #include "base/scoped_ptr.h" |
| 8 #include "base/scoped_temp_dir.h" | 8 #include "base/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" |
| 11 #include "net/base/net_errors.h" |
| 11 #include "net/base/test_completion_callback.h" | 12 #include "net/base/test_completion_callback.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "webkit/database/database_tracker.h" | 14 #include "webkit/database/database_tracker.h" |
| 14 | 15 |
| 15 namespace { | 16 namespace { |
| 16 | 17 |
| 17 class TestObserver : public webkit_database::DatabaseTracker::Observer { | 18 class TestObserver : public webkit_database::DatabaseTracker::Observer { |
| 18 public: | 19 public: |
| 19 TestObserver() : new_notification_received_(false) {} | 20 TestObserver() : new_notification_received_(false) {} |
| 20 virtual ~TestObserver() {} | 21 virtual ~TestObserver() {} |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 | 392 |
| 392 TEST(DatabaseTrackerTest, DatabaseTracker) { | 393 TEST(DatabaseTrackerTest, DatabaseTracker) { |
| 393 DatabaseTracker_TestHelper_Test::TestDatabaseTracker(false); | 394 DatabaseTracker_TestHelper_Test::TestDatabaseTracker(false); |
| 394 } | 395 } |
| 395 | 396 |
| 396 TEST(DatabaseTrackerTest, DatabaseTrackerIncognitoMode) { | 397 TEST(DatabaseTrackerTest, DatabaseTrackerIncognitoMode) { |
| 397 DatabaseTracker_TestHelper_Test::TestDatabaseTracker(true); | 398 DatabaseTracker_TestHelper_Test::TestDatabaseTracker(true); |
| 398 } | 399 } |
| 399 | 400 |
| 400 } // namespace webkit_database | 401 } // namespace webkit_database |
| OLD | NEW |