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

Unified Diff: chrome/browser/local_discovery/privet_local_printer_lister_unittest.cc

Issue 959503003: Remove ServiceDiscoveryClient* from PrivetHTTPAsynchronousFactoryImpl interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fixEstablish
Patch Set: Tue Feb 24 23:11:53 PST 2015 Created 5 years, 10 months 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 side-by-side diff with in-line comments
Download patch
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_;
« no previous file with comments | « chrome/browser/local_discovery/privet_local_printer_lister.cc ('k') | chrome/browser/local_discovery/privet_notifications.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698