OLD | NEW |
1 // Copyright (c) 2006-2008 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/browser/history/visit_tracker.h" | 5 #include "chrome/browser/history/visit_tracker.h" |
6 #include "base/basictypes.h" | 6 #include "base/basictypes.h" |
7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
8 | 8 |
9 using history::VisitTracker; | 9 using history::VisitTracker; |
10 | 10 |
11 namespace { | 11 namespace { |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // Say that process has been destroyed. | 129 // Say that process has been destroyed. |
130 tracker.NotifyRenderProcessHostDestruction(MakeFakeHost(1)); | 130 tracker.NotifyRenderProcessHostDestruction(MakeFakeHost(1)); |
131 | 131 |
132 // Simple navigation from a new process with the same ID, it should not find | 132 // Simple navigation from a new process with the same ID, it should not find |
133 // a referrer. | 133 // a referrer. |
134 VisitToTest part2[] = { | 134 VisitToTest part2[] = { |
135 {1, 1, "http://images.google.com/", 2, "http://www.google.com/", 0}, | 135 {1, 1, "http://images.google.com/", 2, "http://www.google.com/", 0}, |
136 }; | 136 }; |
137 RunTest(&tracker, part2, arraysize(part2)); | 137 RunTest(&tracker, part2, arraysize(part2)); |
138 } | 138 } |
OLD | NEW |