OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/bind.h" | 6 #include "base/bind.h" |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 | 231 |
232 const char kURLCloudPrintConfirm[] = | 232 const char kURLCloudPrintConfirm[] = |
233 "https://www.google.com/cloudprint/confirm?token=MySampleToken"; | 233 "https://www.google.com/cloudprint/confirm?token=MySampleToken"; |
234 | 234 |
235 const char kURLRegisterComplete[] = | 235 const char kURLRegisterComplete[] = |
236 "http://1.2.3.4:8888/privet/register?action=complete&user=user@host.com"; | 236 "http://1.2.3.4:8888/privet/register?action=complete&user=user@host.com"; |
237 | 237 |
238 const char kURLGaiaToken[] = | 238 const char kURLGaiaToken[] = |
239 "https://accounts.google.com/o/oauth2/token"; | 239 "https://accounts.google.com/o/oauth2/token"; |
240 | 240 |
241 const char kSampleServiceName[] = "myService._privet._tcp.local"; | |
242 const char kSampleDeviceID[] = "MyFakeID"; | |
243 const char kSampleDeviceHost[] = "myservice.local"; | |
244 const char kSampleUser[] = "user@host.com"; | 241 const char kSampleUser[] = "user@host.com"; |
245 | 242 |
246 class TestMessageLoopCondition { | 243 class TestMessageLoopCondition { |
247 public: | 244 public: |
248 TestMessageLoopCondition() : signaled_(false), | 245 TestMessageLoopCondition() : signaled_(false), |
249 waiting_(false) { | 246 waiting_(false) { |
250 } | 247 } |
251 | 248 |
252 ~TestMessageLoopCondition() { | 249 ~TestMessageLoopCondition() { |
253 } | 250 } |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 kAnnouncePacketRegistered, sizeof(kAnnouncePacketRegistered)); | 497 kAnnouncePacketRegistered, sizeof(kAnnouncePacketRegistered)); |
501 | 498 |
502 base::MessageLoop::current()->RunUntilIdle(); | 499 base::MessageLoop::current()->RunUntilIdle(); |
503 | 500 |
504 EXPECT_TRUE(WebUIBrowserTest::RunJavascriptTest("expectRegisterDone")); | 501 EXPECT_TRUE(WebUIBrowserTest::RunJavascriptTest("expectRegisterDone")); |
505 } | 502 } |
506 | 503 |
507 } // namespace | 504 } // namespace |
508 | 505 |
509 } // namespace local_discovery | 506 } // namespace local_discovery |
OLD | NEW |