OLD | NEW |
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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
7 #include "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/message_loop_proxy.h" | 9 #include "base/message_loop_proxy.h" |
10 #include "base/threading/sequenced_worker_pool.h" | 10 #include "base/threading/sequenced_worker_pool.h" |
11 #include "base/time.h" | 11 #include "base/time.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "webkit/dom_storage/dom_storage_area.h" | 14 #include "webkit/browser/dom_storage/dom_storage_area.h" |
15 #include "webkit/dom_storage/dom_storage_database.h" | 15 #include "webkit/browser/dom_storage/dom_storage_database.h" |
16 #include "webkit/dom_storage/dom_storage_database_adapter.h" | 16 #include "webkit/browser/dom_storage/dom_storage_database_adapter.h" |
17 #include "webkit/dom_storage/dom_storage_task_runner.h" | 17 #include "webkit/browser/dom_storage/dom_storage_task_runner.h" |
18 #include "webkit/dom_storage/dom_storage_types.h" | 18 #include "webkit/browser/dom_storage/local_storage_database_adapter.h" |
19 #include "webkit/dom_storage/local_storage_database_adapter.h" | 19 #include "webkit/common/dom_storage/dom_storage_types.h" |
20 | 20 |
21 namespace dom_storage { | 21 namespace dom_storage { |
22 | 22 |
23 | 23 |
24 class DomStorageAreaTest : public testing::Test { | 24 class DomStorageAreaTest : public testing::Test { |
25 public: | 25 public: |
26 DomStorageAreaTest() | 26 DomStorageAreaTest() |
27 : kOrigin(GURL("http://dom_storage/")), | 27 : kOrigin(GURL("http://dom_storage/")), |
28 kKey(ASCIIToUTF16("key")), | 28 kKey(ASCIIToUTF16("key")), |
29 kValue(ASCIIToUTF16("value")), | 29 kValue(ASCIIToUTF16("value")), |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 EXPECT_EQ( | 464 EXPECT_EQ( |
465 base::FilePath().AppendASCII("-journal"), | 465 base::FilePath().AppendASCII("-journal"), |
466 DomStorageDatabase::GetJournalFilePath(base::FilePath())); | 466 DomStorageDatabase::GetJournalFilePath(base::FilePath())); |
467 EXPECT_EQ( | 467 EXPECT_EQ( |
468 base::FilePath().AppendASCII(".extensiononly-journal"), | 468 base::FilePath().AppendASCII(".extensiononly-journal"), |
469 DomStorageDatabase::GetJournalFilePath( | 469 DomStorageDatabase::GetJournalFilePath( |
470 base::FilePath().AppendASCII(".extensiononly"))); | 470 base::FilePath().AppendASCII(".extensiononly"))); |
471 } | 471 } |
472 | 472 |
473 } // namespace dom_storage | 473 } // namespace dom_storage |
OLD | NEW |