OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <memory> | 5 #include <memory> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 11 #include "base/task_runner_util.h" |
11 #include "base/test/values_test_util.h" | 12 #include "base/test/values_test_util.h" |
| 13 #include "base/threading/sequenced_worker_pool.h" |
12 #include "chrome/browser/ui/webui/print_preview/printer_capabilities.h" | 14 #include "chrome/browser/ui/webui/print_preview/printer_capabilities.h" |
13 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
14 #include "content/public/test/test_browser_thread_bundle.h" | 16 #include "content/public/test/test_browser_thread_bundle.h" |
15 #include "printing/backend/test_print_backend.h" | 17 #include "printing/backend/test_print_backend.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "ui/gfx/geometry/size.h" | 19 #include "ui/gfx/geometry/size.h" |
18 | 20 |
19 namespace { | 21 namespace { |
20 | 22 |
21 void SettingsReply(std::unique_ptr<base::DictionaryValue>* out, | 23 void SettingsReply(std::unique_ptr<base::DictionaryValue>* out, |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 GetSettingsSynchronous(printer_name, basic_info); | 117 GetSettingsSynchronous(printer_name, basic_info); |
116 | 118 |
117 // verify settings were created | 119 // verify settings were created |
118 ASSERT_TRUE(settings_dictionary); | 120 ASSERT_TRUE(settings_dictionary); |
119 | 121 |
120 // verify that capabilities is an empty dictionary | 122 // verify that capabilities is an empty dictionary |
121 base::DictionaryValue* caps_dict; | 123 base::DictionaryValue* caps_dict; |
122 ASSERT_TRUE(settings_dictionary->GetDictionary("capabilities", &caps_dict)); | 124 ASSERT_TRUE(settings_dictionary->GetDictionary("capabilities", &caps_dict)); |
123 EXPECT_TRUE(caps_dict->empty()); | 125 EXPECT_TRUE(caps_dict->empty()); |
124 } | 126 } |
OLD | NEW |