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

Side by Side Diff: chrome/browser/extensions/api/gcd_private/gcd_private_apitest.cc

Issue 2676313003: Disable flaky browser_test: GcdPrivateWithMdnsAPITest.DeviceInfo (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <stdint.h> 5 #include <stdint.h>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/threading/thread_task_runner_handle.h" 8 #include "base/threading/thread_task_runner_handle.h"
9 #include "chrome/browser/extensions/api/gcd_private/gcd_private_api.h" 9 #include "chrome/browser/extensions/api/gcd_private/gcd_private_api.h"
10 #include "chrome/browser/extensions/extension_apitest.h" 10 #include "chrome/browser/extensions/extension_apitest.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 base::Bind( 135 base::Bind(
136 &local_discovery::TestServiceDiscoveryClient::SimulateReceive, 136 &local_discovery::TestServiceDiscoveryClient::SimulateReceive,
137 test_service_discovery_client_, packet, size), 137 test_service_discovery_client_, packet, size),
138 base::TimeDelta::FromSeconds(1)); 138 base::TimeDelta::FromSeconds(1));
139 } 139 }
140 140
141 scoped_refptr<local_discovery::TestServiceDiscoveryClient> 141 scoped_refptr<local_discovery::TestServiceDiscoveryClient>
142 test_service_discovery_client_; 142 test_service_discovery_client_;
143 }; 143 };
144 144
145 IN_PROC_BROWSER_TEST_F(GcdPrivateWithMdnsAPITest, DeviceInfo) { 145 // Flaky on Linux(dbg). https://crbug.com/689305
146 IN_PROC_BROWSER_TEST_F(GcdPrivateWithMdnsAPITest, DISABLED_DeviceInfo) {
146 test_service_discovery_client_->SimulateReceive(kAnnouncePacket, 147 test_service_discovery_client_->SimulateReceive(kAnnouncePacket,
147 sizeof(kAnnouncePacket)); 148 sizeof(kAnnouncePacket));
148 url_fetcher_factory_.SetFakeResponse(GURL("http://1.2.3.4:8888/privet/info"), 149 url_fetcher_factory_.SetFakeResponse(GURL("http://1.2.3.4:8888/privet/info"),
149 kPrivetInfoResponse, 150 kPrivetInfoResponse,
150 net::HTTP_OK, 151 net::HTTP_OK,
151 net::URLRequestStatus::SUCCESS); 152 net::URLRequestStatus::SUCCESS);
152 EXPECT_TRUE(RunExtensionSubtest("gcd_private/api", "device_info.html")); 153 EXPECT_TRUE(RunExtensionSubtest("gcd_private/api", "device_info.html"));
153 } 154 }
154 155
155 IN_PROC_BROWSER_TEST_F(GcdPrivateWithMdnsAPITest, Session) { 156 IN_PROC_BROWSER_TEST_F(GcdPrivateWithMdnsAPITest, Session) {
156 test_service_discovery_client_->SimulateReceive(kAnnouncePacket, 157 test_service_discovery_client_->SimulateReceive(kAnnouncePacket,
157 sizeof(kAnnouncePacket)); 158 sizeof(kAnnouncePacket));
158 url_fetcher_factory_.SetFakeResponse(GURL("http://1.2.3.4:8888/privet/info"), 159 url_fetcher_factory_.SetFakeResponse(GURL("http://1.2.3.4:8888/privet/info"),
159 kPrivetInfoResponse, 160 kPrivetInfoResponse,
160 net::HTTP_OK, 161 net::HTTP_OK,
161 net::URLRequestStatus::SUCCESS); 162 net::URLRequestStatus::SUCCESS);
162 EXPECT_TRUE(RunExtensionSubtest("gcd_private/api", "session.html")); 163 EXPECT_TRUE(RunExtensionSubtest("gcd_private/api", "session.html"));
163 } 164 }
164 165
165 } // namespace 166 } // namespace
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698