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

Side by Side Diff: chrome/renderer/prerender/prerender_dispatcher_unittest.cc

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/renderer/prerender/prerender_dispatcher.cc ('k') | chrome/renderer/prerender/prerender_extra_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698