| OLD | NEW |
| 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
| 8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 10 #include "base/synchronization/waitable_event.h" | 10 #include "base/synchronization/waitable_event.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 #include "google_apis/gaia/gaia_constants.h" | 39 #include "google_apis/gaia/gaia_constants.h" |
| 40 #include "google_apis/gaia/gaia_urls.h" | 40 #include "google_apis/gaia/gaia_urls.h" |
| 41 #include "net/cookies/canonical_cookie.h" | 41 #include "net/cookies/canonical_cookie.h" |
| 42 #include "net/cookies/cookie_monster.h" | 42 #include "net/cookies/cookie_monster.h" |
| 43 #include "net/cookies/cookie_store.h" | 43 #include "net/cookies/cookie_store.h" |
| 44 #include "net/test/embedded_test_server/http_request.h" | 44 #include "net/test/embedded_test_server/http_request.h" |
| 45 #include "net/test/embedded_test_server/http_response.h" | 45 #include "net/test/embedded_test_server/http_response.h" |
| 46 #include "net/url_request/url_request_context.h" | 46 #include "net/url_request/url_request_context.h" |
| 47 #include "net/url_request/url_request_context_getter.h" | 47 #include "net/url_request/url_request_context_getter.h" |
| 48 | 48 |
| 49 using app_modal_dialogs::AppModalDialog; |
| 50 using app_modal_dialogs::JavaScriptAppModalDialog; |
| 49 using net::test_server::BasicHttpResponse; | 51 using net::test_server::BasicHttpResponse; |
| 50 using net::test_server::HttpRequest; | 52 using net::test_server::HttpRequest; |
| 51 using net::test_server::HttpResponse; | 53 using net::test_server::HttpResponse; |
| 52 | 54 |
| 53 namespace chromeos { | 55 namespace chromeos { |
| 54 | 56 |
| 55 namespace { | 57 namespace { |
| 56 | 58 |
| 57 // Email of owner account for test. | 59 // Email of owner account for test. |
| 58 const char kTestAccountId[] = "username@gmail.com"; | 60 const char kTestAccountId[] = "username@gmail.com"; |
| (...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 790 | 792 |
| 791 if (!catcher.GetNextResult()) { | 793 if (!catcher.GetNextResult()) { |
| 792 std::string message = catcher.message(); | 794 std::string message = catcher.message(); |
| 793 ADD_FAILURE() << "Tests failed: " << message; | 795 ADD_FAILURE() << "Tests failed: " << message; |
| 794 } | 796 } |
| 795 | 797 |
| 796 EXPECT_TRUE(fake_google_.IsPageRequested()); | 798 EXPECT_TRUE(fake_google_.IsPageRequested()); |
| 797 } | 799 } |
| 798 | 800 |
| 799 } // namespace chromeos | 801 } // namespace chromeos |
| OLD | NEW |