| 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" |
| 11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 12 #include "chrome/browser/local_discovery/test_service_discovery_client.h" | 12 #include "chrome/browser/local_discovery/test_service_discovery_client.h" |
| 13 #include "chrome/browser/signin/profile_oauth2_token_service.h" | 13 #include "chrome/browser/signin/profile_oauth2_token_service.h" |
| 14 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 14 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
| 15 #include "chrome/browser/signin/signin_manager.h" | 15 #include "chrome/browser/signin/signin_manager.h" |
| 16 #include "chrome/browser/signin/signin_manager_base.h" | 16 #include "chrome/browser/signin/signin_manager_base.h" |
| 17 #include "chrome/browser/signin/signin_manager_factory.h" | 17 #include "chrome/browser/signin/signin_manager_factory.h" |
| 18 #include "chrome/browser/ui/browser.h" |
| 18 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.h" | 19 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.h" |
| 19 #include "chrome/common/chrome_switches.h" | 20 #include "chrome/common/chrome_switches.h" |
| 20 #include "chrome/common/url_constants.h" | 21 #include "chrome/common/url_constants.h" |
| 21 #include "chrome/test/base/ui_test_utils.cc" | 22 #include "chrome/test/base/ui_test_utils.h" |
| 22 #include "chrome/test/base/web_ui_browsertest.h" | 23 #include "chrome/test/base/web_ui_browsertest.h" |
| 23 #include "net/http/http_status_code.h" | 24 #include "net/http/http_status_code.h" |
| 24 #include "net/url_request/test_url_fetcher_factory.h" | 25 #include "net/url_request/test_url_fetcher_factory.h" |
| 25 #include "net/url_request/url_request_status.h" | 26 #include "net/url_request/url_request_status.h" |
| 26 #include "net/url_request/url_request_test_util.h" | 27 #include "net/url_request/url_request_test_util.h" |
| 27 | 28 |
| 28 using testing::InvokeWithoutArgs; | 29 using testing::InvokeWithoutArgs; |
| 29 using testing::Return; | 30 using testing::Return; |
| 30 using testing::AtLeast; | 31 using testing::AtLeast; |
| 31 using testing::DoDefault; | 32 using testing::DoDefault; |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 kAnnouncePacketRegistered, sizeof(kAnnouncePacketRegistered)); | 519 kAnnouncePacketRegistered, sizeof(kAnnouncePacketRegistered)); |
| 519 | 520 |
| 520 base::MessageLoop::current()->RunUntilIdle(); | 521 base::MessageLoop::current()->RunUntilIdle(); |
| 521 | 522 |
| 522 EXPECT_TRUE(WebUIBrowserTest::RunJavascriptTest("expectRegisterDone")); | 523 EXPECT_TRUE(WebUIBrowserTest::RunJavascriptTest("expectRegisterDone")); |
| 523 } | 524 } |
| 524 | 525 |
| 525 } // namespace | 526 } // namespace |
| 526 | 527 |
| 527 } // namespace local_discovery | 528 } // namespace local_discovery |
| OLD | NEW |