| OLD | NEW | 
|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/bind.h" | 5 #include "base/bind.h" | 
| 6 #include "base/file_path.h" | 6 #include "base/file_path.h" | 
| 7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" | 
| 8 #include "base/test/thread_test_helper.h" | 8 #include "base/test/thread_test_helper.h" | 
| 9 #include "chrome/browser/net/sqlite_persistent_cookie_store.h" | 9 #include "chrome/browser/net/sqlite_persistent_cookie_store.h" | 
| 10 #include "chrome/common/chrome_constants.h" | 10 #include "chrome/common/chrome_constants.h" | 
| 11 #include "chrome/test/automation/automation_proxy.h" | 11 #include "chrome/test/automation/automation_proxy.h" | 
| 12 #include "chrome/test/automation/browser_proxy.h" | 12 #include "chrome/test/automation/browser_proxy.h" | 
| 13 #include "chrome/test/automation/tab_proxy.h" | 13 #include "chrome/test/automation/tab_proxy.h" | 
| 14 #include "chrome/test/base/ui_test_utils.h" | 14 #include "chrome/test/base/ui_test_utils.h" | 
| 15 #include "chrome/test/ui/ui_test.h" | 15 #include "chrome/test/ui/ui_test.h" | 
| 16 #include "content/test/test_browser_thread.h" | 16 #include "content/test/test_browser_thread.h" | 
| 17 | 17 | 
|  | 18 using content::BrowserThread; | 
|  | 19 | 
| 18 class FastShutdown : public UITest { | 20 class FastShutdown : public UITest { | 
| 19  protected: | 21  protected: | 
| 20   FastShutdown() | 22   FastShutdown() | 
| 21       : db_thread_(BrowserThread::DB), | 23       : db_thread_(BrowserThread::DB), | 
| 22         io_thread_(BrowserThread::IO), | 24         io_thread_(BrowserThread::IO), | 
| 23         thread_helper_(new base::ThreadTestHelper( | 25         thread_helper_(new base::ThreadTestHelper( | 
| 24             BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB))) { | 26             BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB))) { | 
| 25     dom_automation_enabled_ = true; | 27     dom_automation_enabled_ = true; | 
| 26   } | 28   } | 
| 27 | 29 | 
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 121   // cookie that's stored to disk. | 123   // cookie that's stored to disk. | 
| 122   QuitBrowser(); | 124   QuitBrowser(); | 
| 123 | 125 | 
| 124   bool has_cookie = false; | 126   bool has_cookie = false; | 
| 125   std::string cookie_value; | 127   std::string cookie_value; | 
| 126   // Read the cookie and check that it has the expected value. | 128   // Read the cookie and check that it has the expected value. | 
| 127   GetCookie(cookie, &has_cookie, &cookie_value); | 129   GetCookie(cookie, &has_cookie, &cookie_value); | 
| 128   EXPECT_TRUE(has_cookie); | 130   EXPECT_TRUE(has_cookie); | 
| 129   EXPECT_EQ("ohyeah", cookie_value); | 131   EXPECT_EQ("ohyeah", cookie_value); | 
| 130 } | 132 } | 
| OLD | NEW | 
|---|