OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "components/history/core/browser/visit_tracker.h" | 5 #include "components/history/core/browser/visit_tracker.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/macros.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 | 9 |
10 namespace history { | 10 namespace history { |
11 namespace { | 11 namespace { |
12 | 12 |
13 struct VisitToTest { | 13 struct VisitToTest { |
14 // Identifies the context. | 14 // Identifies the context. |
15 int context_id_int; | 15 int context_id_int; |
16 int nav_entry_id; | 16 int nav_entry_id; |
17 | 17 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 | 121 |
122 // Simple navigation from a new process with the same ID, it should not find | 122 // Simple navigation from a new process with the same ID, it should not find |
123 // a referrer. | 123 // a referrer. |
124 VisitToTest part2[] = { | 124 VisitToTest part2[] = { |
125 {1, 1, "http://images.google.com/", 2, "http://www.google.com/", 0}, | 125 {1, 1, "http://images.google.com/", 2, "http://www.google.com/", 0}, |
126 }; | 126 }; |
127 RunTest(&tracker, part2, arraysize(part2)); | 127 RunTest(&tracker, part2, arraysize(part2)); |
128 } | 128 } |
129 | 129 |
130 } // namespace history | 130 } // namespace history |
OLD | NEW |