OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/data_reduction_proxy/content/browser/data_reduction_proxy_d
ebug_ui_manager.h" | 5 #include "components/data_reduction_proxy/content/browser/data_reduction_proxy_d
ebug_ui_manager.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/macros.h" |
11 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
13 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
14 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
15 #include "content/public/test/test_browser_thread_bundle.h" | 16 #include "content/public/test/test_browser_thread_bundle.h" |
16 #include "net/url_request/url_request.h" | 17 #include "net/url_request/url_request.h" |
17 #include "net/url_request/url_request_test_util.h" | 18 #include "net/url_request/url_request_test_util.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
19 | 20 |
20 namespace data_reduction_proxy { | 21 namespace data_reduction_proxy { |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 ResetState(); | 169 ResetState(); |
169 content::BrowserThread::PostTask( | 170 content::BrowserThread::PostTask( |
170 content::BrowserThread::UI, FROM_HERE, | 171 content::BrowserThread::UI, FROM_HERE, |
171 base::Bind(&DataReductionProxyDebugUIManager::OnBlockingPageDone, | 172 base::Bind(&DataReductionProxyDebugUIManager::OnBlockingPageDone, |
172 ui_manager_, resources, true)); | 173 ui_manager_, resources, true)); |
173 base::RunLoop().RunUntilIdle(); | 174 base::RunLoop().RunUntilIdle(); |
174 EXPECT_EQ(PROCEED, state_); | 175 EXPECT_EQ(PROCEED, state_); |
175 } | 176 } |
176 | 177 |
177 } // namespace data_reduction_proxy | 178 } // namespace data_reduction_proxy |
OLD | NEW |