OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/renderer/prerender/prerender_dispatcher.h" | 5 #include "chrome/renderer/prerender/prerender_dispatcher.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "url/gurl.h" | 14 #include "url/gurl.h" |
14 | 15 |
15 namespace prerender { | 16 namespace prerender { |
16 | 17 |
17 namespace { | 18 namespace { |
18 | 19 |
19 int g_next_prerender_id = 0; | 20 int g_next_prerender_id = 0; |
20 | 21 |
21 } // namespace | 22 } // namespace |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 EXPECT_EQ(2, GetCountForURL(foo_url)); | 147 EXPECT_EQ(2, GetCountForURL(foo_url)); |
147 RemoveAliasFromPrerender(foo_url); | 148 RemoveAliasFromPrerender(foo_url); |
148 EXPECT_TRUE(IsPrerenderURL(foo_url)); | 149 EXPECT_TRUE(IsPrerenderURL(foo_url)); |
149 EXPECT_EQ(1, GetCountForURL(foo_url)); | 150 EXPECT_EQ(1, GetCountForURL(foo_url)); |
150 RemoveAliasFromPrerender(foo_url); | 151 RemoveAliasFromPrerender(foo_url); |
151 EXPECT_FALSE(IsPrerenderURL(foo_url)); | 152 EXPECT_FALSE(IsPrerenderURL(foo_url)); |
152 EXPECT_EQ(0, GetCountForURL(foo_url)); | 153 EXPECT_EQ(0, GetCountForURL(foo_url)); |
153 } | 154 } |
154 | 155 |
155 } // end namespace prerender | 156 } // end namespace prerender |
OLD | NEW |