Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Side by Side Diff: net/base/cookie_monster_unittest.cc

Issue 6248021: Reapply r72562 with willchan's nits + locally tested shlib fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698