Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: chrome/browser/ui/webui/fileicon_source_unittest.cc

Issue 14039004: Add int params to URLDataSource::StartDataRequest(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: It's not called a renderder. Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/webui/fileicon_source.cc ('k') | chrome/browser/ui/webui/ntp/new_tab_ui.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/fileicon_source.cc ('k') | chrome/browser/ui/webui/ntp/new_tab_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698