| 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 "webkit/fileapi/file_system_directory_database.h" | 5 #include "webkit/fileapi/file_system_directory_database.h" |
| 6 | 6 |
| 7 #include <math.h> | 7 #include <math.h> |
| 8 | 8 |
| 9 #include "base/memory/scoped_temp_dir.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_temp_dir.h" |
| 11 #include "base/string_number_conversions.h" | 11 #include "base/string_number_conversions.h" |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 14 |
| 15 namespace fileapi { | 15 namespace fileapi { |
| 16 | 16 |
| 17 class FileSystemDirectoryDatabaseTest : public testing::Test { | 17 class FileSystemDirectoryDatabaseTest : public testing::Test { |
| 18 public: | 18 public: |
| 19 typedef FileSystemDirectoryDatabase::FileId FileId; | 19 typedef FileSystemDirectoryDatabase::FileId FileId; |
| 20 typedef FileSystemDirectoryDatabase::FileInfo FileInfo; | 20 typedef FileSystemDirectoryDatabase::FileInfo FileInfo; |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 EXPECT_TRUE(db()->GetNextInteger(&next)); | 402 EXPECT_TRUE(db()->GetNextInteger(&next)); |
| 403 EXPECT_EQ(2, next); | 403 EXPECT_EQ(2, next); |
| 404 EXPECT_TRUE(db()->GetNextInteger(&next)); | 404 EXPECT_TRUE(db()->GetNextInteger(&next)); |
| 405 EXPECT_EQ(3, next); | 405 EXPECT_EQ(3, next); |
| 406 InitDatabase(); | 406 InitDatabase(); |
| 407 EXPECT_TRUE(db()->GetNextInteger(&next)); | 407 EXPECT_TRUE(db()->GetNextInteger(&next)); |
| 408 EXPECT_EQ(4, next); | 408 EXPECT_EQ(4, next); |
| 409 } | 409 } |
| 410 | 410 |
| 411 } // namespace fileapi | 411 } // namespace fileapi |
| OLD | NEW |