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 "chrome/browser/profile_resetter/profile_resetter.h" | 5 #include "chrome/browser/profile_resetter/profile_resetter.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/macros.h" |
8 #include "chrome/browser/profile_resetter/profile_resetter_test_base.h" | 9 #include "chrome/browser/profile_resetter/profile_resetter_test_base.h" |
9 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
11 #include "chrome/test/base/in_process_browser_test.h" | 12 #include "chrome/test/base/in_process_browser_test.h" |
12 #include "content/public/test/test_utils.h" | 13 #include "content/public/test/test_utils.h" |
13 #include "net/cookies/cookie_store.h" | 14 #include "net/cookies/cookie_store.h" |
14 #include "net/url_request/url_request_context.h" | 15 #include "net/url_request/url_request_context.h" |
15 #include "net/url_request/url_request_context_getter.h" | 16 #include "net/url_request/url_request_context_getter.h" |
16 | 17 |
17 namespace { | 18 namespace { |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 RemoveCookieTester tester(browser()->profile()); | 166 RemoveCookieTester tester(browser()->profile()); |
166 tester.AddCookie(kCookieHostname, kCookieDefinition); | 167 tester.AddCookie(kCookieHostname, kCookieDefinition); |
167 ASSERT_EQ(kCookieDefinition, tester.GetCookie(kCookieHostname)); | 168 ASSERT_EQ(kCookieDefinition, tester.GetCookie(kCookieHostname)); |
168 | 169 |
169 ResetAndWait(ProfileResetter::COOKIES_AND_SITE_DATA); | 170 ResetAndWait(ProfileResetter::COOKIES_AND_SITE_DATA); |
170 | 171 |
171 EXPECT_EQ("", tester.GetCookie(kCookieHostname)); | 172 EXPECT_EQ("", tester.GetCookie(kCookieHostname)); |
172 } | 173 } |
173 | 174 |
174 } // namespace | 175 } // namespace |
OLD | NEW |