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

Side by Side Diff: chrome/browser/bookmarks/bookmark_model_unittest.cc

Issue 253753005: Move bookmarks' production code to components/bookmarks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@367656
Patch Set: Fix compilation for win_chromium_x64_rel Created 6 years, 7 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/browser/bookmarks/bookmark_model.h" 5 #include "components/bookmarks/core/browser/bookmark_model.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 9
10 #include "base/base_paths.h" 10 #include "base/base_paths.h"
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/containers/hash_tables.h" 14 #include "base/containers/hash_tables.h"
15 #include "base/path_service.h" 15 #include "base/path_service.h"
16 #include "base/strings/string16.h" 16 #include "base/strings/string16.h"
17 #include "base/strings/string_number_conversions.h" 17 #include "base/strings/string_number_conversions.h"
18 #include "base/strings/string_split.h" 18 #include "base/strings/string_split.h"
19 #include "base/strings/string_util.h" 19 #include "base/strings/string_util.h"
20 #include "base/strings/utf_string_conversions.h" 20 #include "base/strings/utf_string_conversions.h"
21 #include "base/time/time.h" 21 #include "base/time/time.h"
22 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 22 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
23 #include "chrome/browser/bookmarks/bookmark_test_helpers.h" 23 #include "chrome/browser/bookmarks/bookmark_test_helpers.h"
24 #include "chrome/browser/bookmarks/bookmark_utils.h"
25 #include "chrome/browser/bookmarks/test_bookmark_client.h" 24 #include "chrome/browser/bookmarks/test_bookmark_client.h"
26 #include "chrome/test/base/testing_profile.h" 25 #include "chrome/test/base/testing_profile.h"
27 #include "components/bookmarks/core/browser/bookmark_model_observer.h" 26 #include "components/bookmarks/core/browser/bookmark_model_observer.h"
27 #include "components/bookmarks/core/browser/bookmark_utils.h"
28 #include "content/public/test/test_browser_thread_bundle.h" 28 #include "content/public/test/test_browser_thread_bundle.h"
29 #include "testing/gtest/include/gtest/gtest.h" 29 #include "testing/gtest/include/gtest/gtest.h"
30 #include "ui/base/models/tree_node_iterator.h" 30 #include "ui/base/models/tree_node_iterator.h"
31 #include "ui/base/models/tree_node_model.h" 31 #include "ui/base/models/tree_node_model.h"
32 #include "url/gurl.h" 32 #include "url/gurl.h"
33 33
34 using base::ASCIIToUTF16; 34 using base::ASCIIToUTF16;
35 using base::Time; 35 using base::Time;
36 using base::TimeDelta; 36 using base::TimeDelta;
37 37
(...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after
1144 EXPECT_TRUE(node.DeleteMetaInfo("key2.subkey2.leaf")); 1144 EXPECT_TRUE(node.DeleteMetaInfo("key2.subkey2.leaf"));
1145 EXPECT_FALSE(node.DeleteMetaInfo("key3")); 1145 EXPECT_FALSE(node.DeleteMetaInfo("key3"));
1146 EXPECT_FALSE(node.GetMetaInfo("key1", &out_value)); 1146 EXPECT_FALSE(node.GetMetaInfo("key1", &out_value));
1147 EXPECT_FALSE(node.GetMetaInfo("key2.subkey1", &out_value)); 1147 EXPECT_FALSE(node.GetMetaInfo("key2.subkey1", &out_value));
1148 EXPECT_FALSE(node.GetMetaInfo("key2.subkey2", &out_value)); 1148 EXPECT_FALSE(node.GetMetaInfo("key2.subkey2", &out_value));
1149 EXPECT_FALSE(node.GetMetaInfo("key2.subkey2.leaf", &out_value)); 1149 EXPECT_FALSE(node.GetMetaInfo("key2.subkey2.leaf", &out_value));
1150 EXPECT_FALSE(node.GetMetaInfoMap()); 1150 EXPECT_FALSE(node.GetMetaInfoMap());
1151 } 1151 }
1152 1152
1153 } // namespace 1153 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model_factory.cc ('k') | chrome/browser/bookmarks/bookmark_node_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698