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

Side by Side Diff: components/bookmarks/browser/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: Fixing errors reported by presubmit 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/files/scoped_temp_dir.h" 6 #include "base/files/scoped_temp_dir.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.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 "components/bookmarks/core/browser/bookmark_model.h" 10 #include "components/bookmarks/browser/bookmark_model.h"
11 #include "components/bookmarks/core/browser/bookmark_node_data.h" 11 #include "components/bookmarks/browser/bookmark_node_data.h"
12 #include "components/bookmarks/core/test/bookmark_test_helpers.h" 12 #include "components/bookmarks/test/bookmark_test_helpers.h"
13 #include "components/bookmarks/core/test/test_bookmark_client.h" 13 #include "components/bookmarks/test/test_bookmark_client.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 #include "ui/base/dragdrop/os_exchange_data.h" 15 #include "ui/base/dragdrop/os_exchange_data.h"
16 #include "ui/events/platform/platform_event_source.h" 16 #include "ui/events/platform/platform_event_source.h"
17 #include "url/gurl.h" 17 #include "url/gurl.h"
18 18
19 using base::ASCIIToUTF16; 19 using base::ASCIIToUTF16;
20 20
21 class BookmarkNodeDataTest : public testing::Test { 21 class BookmarkNodeDataTest : public testing::Test {
22 public: 22 public:
23 BookmarkNodeDataTest() {} 23 BookmarkNodeDataTest() {}
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 EXPECT_TRUE(read_data.Read(data2)); 287 EXPECT_TRUE(read_data.Read(data2));
288 EXPECT_TRUE(read_data.is_valid()); 288 EXPECT_TRUE(read_data.is_valid());
289 ASSERT_EQ(1u, read_data.elements.size()); 289 ASSERT_EQ(1u, read_data.elements.size());
290 290
291 // Verify that the read data contains the same meta info. 291 // Verify that the read data contains the same meta info.
292 BookmarkNode::MetaInfoMap meta_info_map = read_data.elements[0].meta_info_map; 292 BookmarkNode::MetaInfoMap meta_info_map = read_data.elements[0].meta_info_map;
293 EXPECT_EQ(2u, meta_info_map.size()); 293 EXPECT_EQ(2u, meta_info_map.size());
294 EXPECT_EQ("somevalue", meta_info_map["somekey"]); 294 EXPECT_EQ("somevalue", meta_info_map["somekey"]);
295 EXPECT_EQ("someothervalue", meta_info_map["someotherkey"]); 295 EXPECT_EQ("someothervalue", meta_info_map["someotherkey"]);
296 } 296 }
OLDNEW
« no previous file with comments | « components/bookmarks/browser/bookmark_node_data_mac.cc ('k') | components/bookmarks/browser/bookmark_node_data_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698