| Index: chrome/browser/local_discovery/privet_local_printer_lister_unittest.cc
|
| diff --git a/chrome/browser/local_discovery/privet_local_printer_lister_unittest.cc b/chrome/browser/local_discovery/privet_local_printer_lister_unittest.cc
|
| index 35b654159a900cdead14a07762e226e2f548e3a8..b6893aae1a0eae89a82e45e71ad28965740fe21f 100644
|
| --- a/chrome/browser/local_discovery/privet_local_printer_lister_unittest.cc
|
| +++ b/chrome/browser/local_discovery/privet_local_printer_lister_unittest.cc
|
| @@ -2,12 +2,13 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "base/message_loop/message_loop.h"
|
| #include "chrome/browser/local_discovery/privet_local_printer_lister.h"
|
| +
|
| +#include "base/run_loop.h"
|
| #include "chrome/browser/local_discovery/test_service_discovery_client.h"
|
| +#include "content/public/test/test_browser_thread_bundle.h"
|
| #include "net/url_request/test_url_fetcher_factory.h"
|
| #include "net/url_request/url_request_test_util.h"
|
| -
|
| #include "testing/gmock/include/gmock/gmock.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| @@ -137,7 +138,7 @@ class PrivetLocalPrinterListerTest : public testing::Test {
|
|
|
| void SimulateReceive(const uint8* packet, size_t size) {
|
| test_service_discovery_client_->SimulateReceive(packet, size);
|
| - message_loop_.RunUntilIdle();
|
| + base::RunLoop().RunUntilIdle();
|
| }
|
|
|
| void ExpectAnyPacket() {
|
| @@ -146,7 +147,7 @@ class PrivetLocalPrinterListerTest : public testing::Test {
|
| }
|
|
|
| protected:
|
| - base::MessageLoop message_loop_;
|
| + content::TestBrowserThreadBundle test_thread_bundle;
|
| scoped_refptr<TestServiceDiscoveryClient> test_service_discovery_client_;
|
| scoped_refptr<net::TestURLRequestContextGetter> url_request_context_;
|
| scoped_ptr<PrivetLocalPrinterLister> local_printer_lister_;
|
|
|