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

Side by Side Diff: printing/printing_context_win_unittest.cc

Issue 56333005: Update printing_context_win_unittest.cc for r231501. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 1 month 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 | « no previous file | no next file » | 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) 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 <ocidl.h> 5 #include <ocidl.h>
6 #include <commdlg.h> 6 #include <commdlg.h>
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 return; 163 return;
164 164
165 std::string dummy_locale; 165 std::string dummy_locale;
166 printing::PrintingContextWin context(dummy_locale); 166 printing::PrintingContextWin context(dummy_locale);
167 context.SetPrintDialog(&PrintDlgExMock); 167 context.SetPrintDialog(&PrintDlgExMock);
168 context.AskUserForSettings( 168 context.AskUserForSettings(
169 NULL, 123, false, base::Bind(&PrintingContextTest::PrintSettingsCallback, 169 NULL, 123, false, base::Bind(&PrintingContextTest::PrintSettingsCallback,
170 base::Unretained(this))); 170 base::Unretained(this)));
171 EXPECT_EQ(printing::PrintingContext::OK, result()); 171 EXPECT_EQ(printing::PrintingContext::OK, result());
172 printing::PrintSettings settings = context.settings(); 172 printing::PrintSettings settings = context.settings();
173 EXPECT_EQ(settings.ranges.size(), 0); 173 EXPECT_EQ(settings.ranges().size(), 0);
174 } 174 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698