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/memory/ref_counted_memory.h" | 5 #include "base/memory/ref_counted_memory.h" |
6 #include "base/message_loop.h" | 6 #include "base/message_loop.h" |
7 #include "chrome/browser/icon_manager.h" | 7 #include "chrome/browser/icon_manager.h" |
8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
9 #include "chrome/browser/ui/webui/fileicon_source.h" | 9 #include "chrome/browser/ui/webui/fileicon_source.h" |
10 #include "chrome/test/base/testing_profile.h" | 10 #include "chrome/test/base/testing_profile.h" |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 supported_scale_factors); | 125 supported_scale_factors); |
126 | 126 |
127 for (unsigned i = 0; i < arraysize(kBasicExpectations); i++) { | 127 for (unsigned i = 0; i < arraysize(kBasicExpectations); i++) { |
128 scoped_ptr<TestFileIconSource> source(CreateFileIconSource()); | 128 scoped_ptr<TestFileIconSource> source(CreateFileIconSource()); |
129 content::URLDataSource::GotDataCallback callback; | 129 content::URLDataSource::GotDataCallback callback; |
130 EXPECT_CALL(*source.get(), | 130 EXPECT_CALL(*source.get(), |
131 FetchFileIcon( | 131 FetchFileIcon( |
132 base::FilePath(kBasicExpectations[i].unescaped_path), | 132 base::FilePath(kBasicExpectations[i].unescaped_path), |
133 kBasicExpectations[i].scale_factor, | 133 kBasicExpectations[i].scale_factor, |
134 kBasicExpectations[i].size, CallbackIsNull())); | 134 kBasicExpectations[i].size, CallbackIsNull())); |
135 source->StartDataRequest(kBasicExpectations[i].request_path, false, | 135 source->StartDataRequest(kBasicExpectations[i].request_path, -1, -1, |
136 callback); | 136 callback); |
137 } | 137 } |
138 } | 138 } |
OLD | NEW |