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 <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 Loading... |
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 } |
OLD | NEW |