OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <time.h> | 5 #include <time.h> |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/message_loop.h" |
10 #include "base/ref_counted.h" | 11 #include "base/ref_counted.h" |
11 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
12 #include "base/string_util.h" | 13 #include "base/string_util.h" |
13 #include "base/stringprintf.h" | 14 #include "base/stringprintf.h" |
14 #include "base/threading/platform_thread.h" | 15 #include "base/threading/platform_thread.h" |
15 #include "base/time.h" | 16 #include "base/time.h" |
16 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
17 #include "net/base/cookie_monster.h" | 18 #include "net/base/cookie_monster.h" |
18 #include "net/base/cookie_monster_store_test.h" // For CookieStore Mock | 19 #include "net/base/cookie_monster_store_test.h" // For CookieStore Mock |
19 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 2147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2167 | 2168 |
2168 ASSERT_EQ(2, counter->callback_count()); | 2169 ASSERT_EQ(2, counter->callback_count()); |
2169 | 2170 |
2170 cm->FlushStore(NewRunnableMethod(counter.get(), &CallbackCounter::Callback)); | 2171 cm->FlushStore(NewRunnableMethod(counter.get(), &CallbackCounter::Callback)); |
2171 MessageLoop::current()->RunAllPending(); | 2172 MessageLoop::current()->RunAllPending(); |
2172 | 2173 |
2173 ASSERT_EQ(3, counter->callback_count()); | 2174 ASSERT_EQ(3, counter->callback_count()); |
2174 } | 2175 } |
2175 | 2176 |
2176 } // namespace | 2177 } // namespace |
OLD | NEW |