OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <stddef.h> |
| 6 |
5 #include <iostream> | 7 #include <iostream> |
6 #include <map> | 8 #include <map> |
7 #include <string> | 9 #include <string> |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/json/json_reader.h" | 12 #include "base/json/json_reader.h" |
11 #include "base/json/json_writer.h" | 13 #include "base/json/json_writer.h" |
12 #include "base/macros.h" | 14 #include "base/macros.h" |
13 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
14 #include "base/values.h" | 16 #include "base/values.h" |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 TEST_F(SupervisedUserBookmarksHandlerTest, Circle) { | 315 TEST_F(SupervisedUserBookmarksHandlerTest, Circle) { |
314 // Make some fake settings which include a circular reference in the folders. | 316 // Make some fake settings which include a circular reference in the folders. |
315 scoped_ptr<base::DictionaryValue> settings( | 317 scoped_ptr<base::DictionaryValue> settings( |
316 CreateSettings(CreateLinkDictionary(), | 318 CreateSettings(CreateLinkDictionary(), |
317 CreateFolderDictionaryWithCircle())); | 319 CreateFolderDictionaryWithCircle())); |
318 scoped_ptr<base::ListValue> bookmarks( | 320 scoped_ptr<base::ListValue> bookmarks( |
319 SupervisedUserBookmarksHandler::BuildBookmarksTree(*settings.get())); | 321 SupervisedUserBookmarksHandler::BuildBookmarksTree(*settings.get())); |
320 // Don't care what exactly the result looks like, just that we don't run into | 322 // Don't care what exactly the result looks like, just that we don't run into |
321 // an endless loop. | 323 // an endless loop. |
322 } | 324 } |
OLD | NEW |