OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "core/inspector/v8/SourceMap.h" | 5 #include "core/inspector/v8/SourceMap.h" |
6 | 6 |
7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
8 | 8 |
9 namespace blink { | 9 namespace blink { |
10 | 10 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 ASSERT_FALSE(!entry); | 173 ASSERT_FALSE(!entry); |
174 EXPECT_TRUE(isEqualEntry(entry, adoptPtr(new SourceMap::Entry(102, 24, "foo.
js", 2, 19)))); | 174 EXPECT_TRUE(isEqualEntry(entry, adoptPtr(new SourceMap::Entry(102, 24, "foo.
js", 2, 19)))); |
175 | 175 |
176 entry = sourceMap->findEntry(102, 15); | 176 entry = sourceMap->findEntry(102, 15); |
177 ASSERT_FALSE(!entry); | 177 ASSERT_FALSE(!entry); |
178 EXPECT_TRUE(isEqualEntry(entry, adoptPtr(new SourceMap::Entry(102, 15, "foo.
js", 2, 10)))); | 178 EXPECT_TRUE(isEqualEntry(entry, adoptPtr(new SourceMap::Entry(102, 15, "foo.
js", 2, 10)))); |
179 | 179 |
180 ASSERT_TRUE(!sourceMap->findEntry(0, 0)); | 180 ASSERT_TRUE(!sourceMap->findEntry(0, 0)); |
181 } | 181 } |
182 | 182 |
183 } // blink | 183 } // namespace blink |
OLD | NEW |