| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/file_util.h" |
| 10 #include "base/ref_counted.h" | 11 #include "base/ref_counted.h" |
| 11 #include "chrome/browser/in_process_webkit/webkit_context.h" | 12 #include "chrome/browser/in_process_webkit/webkit_context.h" |
| 12 #include "chrome/browser/in_process_webkit/webkit_thread.h" | 13 #include "chrome/browser/in_process_webkit/webkit_thread.h" |
| 13 #include "chrome/browser/browsing_data_local_storage_helper.h" | 14 #include "chrome/browser/browsing_data_local_storage_helper.h" |
| 14 #include "chrome/test/in_process_browser_test.h" | 15 #include "chrome/test/in_process_browser_test.h" |
| 15 #include "chrome/test/testing_profile.h" | 16 #include "chrome/test/testing_profile.h" |
| 16 #include "chrome/test/ui_test_utils.h" | 17 #include "chrome/test/ui_test_utils.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 18 | 19 |
| 19 static const FilePath::CharType kTestFile0[] = | 20 static const FilePath::CharType kTestFile0[] = |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 file_util::FileEnumerator::FILES); | 145 file_util::FileEnumerator::FILES); |
| 145 int num_files = 0; | 146 int num_files = 0; |
| 146 for (FilePath file_path = file_enumerator.Next(); | 147 for (FilePath file_path = file_enumerator.Next(); |
| 147 !file_path.empty(); | 148 !file_path.empty(); |
| 148 file_path = file_enumerator.Next()) { | 149 file_path = file_enumerator.Next()) { |
| 149 ASSERT_FALSE(FilePath(kTestFile0) == file_path.BaseName()); | 150 ASSERT_FALSE(FilePath(kTestFile0) == file_path.BaseName()); |
| 150 ++num_files; | 151 ++num_files; |
| 151 } | 152 } |
| 152 ASSERT_EQ(3, num_files); | 153 ASSERT_EQ(3, num_files); |
| 153 } | 154 } |
| OLD | NEW |