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_util.h" | 5 #include "base/file_util.h" |
6 #include "base/memory/ref_counted.h" | 6 #include "base/memory/ref_counted.h" |
7 #include "base/memory/scoped_temp_dir.h" | |
8 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "base/scoped_temp_dir.h" |
9 #include "chrome/common/chrome_constants.h" | 9 #include "chrome/common/chrome_constants.h" |
10 #include "chrome/test/testing_browser_process.h" | 10 #include "chrome/test/testing_browser_process.h" |
11 #include "chrome/test/testing_browser_process_test.h" | 11 #include "chrome/test/testing_browser_process_test.h" |
12 #include "chrome/test/thread_test_helper.h" | 12 #include "chrome/test/thread_test_helper.h" |
13 #include "content/browser/appcache/chrome_appcache_service.h" | 13 #include "content/browser/appcache/chrome_appcache_service.h" |
14 #include "content/browser/browser_thread.h" | 14 #include "content/browser/browser_thread.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "webkit/appcache/appcache_storage_impl.h" | 16 #include "webkit/appcache/appcache_storage_impl.h" |
17 | 17 |
18 namespace appcache { | 18 namespace appcache { |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 ASSERT_TRUE(file_util::PathExists(appcache_path)); | 96 ASSERT_TRUE(file_util::PathExists(appcache_path)); |
97 ASSERT_TRUE(file_util::PathExists(appcache_path.AppendASCII("Index"))); | 97 ASSERT_TRUE(file_util::PathExists(appcache_path.AppendASCII("Index"))); |
98 | 98 |
99 appcache_service = NULL; | 99 appcache_service = NULL; |
100 message_loop_.RunAllPending(); | 100 message_loop_.RunAllPending(); |
101 | 101 |
102 ASSERT_FALSE(file_util::PathExists(appcache_path)); | 102 ASSERT_FALSE(file_util::PathExists(appcache_path)); |
103 } | 103 } |
104 | 104 |
105 } // namespace appcache | 105 } // namespace appcache |
OLD | NEW |