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

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

Issue 284893003: Move bookmarks/core/... to bookmarks/... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing to ToT 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 10 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
11 #include "chrome/test/base/testing_profile.h" 11 #include "chrome/test/base/testing_profile.h"
12 #include "components/bookmarks/core/browser/bookmark_model.h" 12 #include "components/bookmarks/browser/bookmark_model.h"
13 #include "components/bookmarks/core/browser/bookmark_node_data.h" 13 #include "components/bookmarks/browser/bookmark_node_data.h"
14 #include "components/bookmarks/core/test/bookmark_test_helpers.h" 14 #include "components/bookmarks/test/bookmark_test_helpers.h"
15 #include "content/public/test/test_browser_thread_bundle.h" 15 #include "content/public/test/test_browser_thread_bundle.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 #include "ui/base/dragdrop/os_exchange_data.h" 17 #include "ui/base/dragdrop/os_exchange_data.h"
18 #include "ui/events/platform/platform_event_source.h" 18 #include "ui/events/platform/platform_event_source.h"
19 #include "url/gurl.h" 19 #include "url/gurl.h"
20 20
21 using base::ASCIIToUTF16; 21 using base::ASCIIToUTF16;
22 22
23 class BookmarkNodeDataTest : public testing::Test { 23 class BookmarkNodeDataTest : public testing::Test {
24 public: 24 public:
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 EXPECT_TRUE(read_data.Read(data2)); 285 EXPECT_TRUE(read_data.Read(data2));
286 EXPECT_TRUE(read_data.is_valid()); 286 EXPECT_TRUE(read_data.is_valid());
287 ASSERT_EQ(1u, read_data.elements.size()); 287 ASSERT_EQ(1u, read_data.elements.size());
288 288
289 // Verify that the read data contains the same meta info. 289 // Verify that the read data contains the same meta info.
290 BookmarkNode::MetaInfoMap meta_info_map = read_data.elements[0].meta_info_map; 290 BookmarkNode::MetaInfoMap meta_info_map = read_data.elements[0].meta_info_map;
291 EXPECT_EQ(2u, meta_info_map.size()); 291 EXPECT_EQ(2u, meta_info_map.size());
292 EXPECT_EQ("somevalue", meta_info_map["somekey"]); 292 EXPECT_EQ("somevalue", meta_info_map["somekey"]);
293 EXPECT_EQ("someothervalue", meta_info_map["someotherkey"]); 293 EXPECT_EQ("someothervalue", meta_info_map["someotherkey"]);
294 } 294 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698