| 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/file_util.h" | 5 #include "base/file_util.h" |
| 6 #include "base/memory/ref_counted.h" | 6 #include "base/memory/ref_counted.h" |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "base/scoped_temp_dir.h" | 8 #include "base/scoped_temp_dir.h" |
| 9 #include "base/stl_util-inl.h" | 9 #include "base/stl_util.h" |
| 10 #include "base/test/thread_test_helper.h" | 10 #include "base/test/thread_test_helper.h" |
| 11 #include "base/time.h" | 11 #include "base/time.h" |
| 12 #include "chrome/browser/net/sqlite_persistent_cookie_store.h" | 12 #include "chrome/browser/net/sqlite_persistent_cookie_store.h" |
| 13 #include "chrome/common/chrome_constants.h" | 13 #include "chrome/common/chrome_constants.h" |
| 14 #include "content/browser/browser_thread.h" | 14 #include "content/browser/browser_thread.h" |
| 15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 17 |
| 18 class SQLitePersistentCookieStoreTest : public testing::Test { | 18 class SQLitePersistentCookieStoreTest : public testing::Test { |
| 19 public: | 19 public: |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 | 178 |
| 179 store_->Flush(NewRunnableMethod(counter.get(), &CallbackCounter::Callback)); | 179 store_->Flush(NewRunnableMethod(counter.get(), &CallbackCounter::Callback)); |
| 180 | 180 |
| 181 scoped_refptr<base::ThreadTestHelper> helper( | 181 scoped_refptr<base::ThreadTestHelper> helper( |
| 182 new base::ThreadTestHelper( | 182 new base::ThreadTestHelper( |
| 183 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB))); | 183 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB))); |
| 184 ASSERT_TRUE(helper->Run()); | 184 ASSERT_TRUE(helper->Run()); |
| 185 | 185 |
| 186 ASSERT_EQ(1, counter->callback_count()); | 186 ASSERT_EQ(1, counter->callback_count()); |
| 187 } | 187 } |
| OLD | NEW |