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

Side by Side Diff: components/bookmarks/browser/bookmark_codec_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 "components/bookmarks/core/browser/bookmark_codec.h" 5 #include "components/bookmarks/browser/bookmark_codec.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/json/json_file_value_serializer.h" 9 #include "base/json/json_file_value_serializer.h"
10 #include "base/json/json_string_value_serializer.h" 10 #include "base/json/json_string_value_serializer.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/path_service.h" 12 #include "base/path_service.h"
13 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
14 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
15 #include "base/values.h" 15 #include "base/values.h"
16 #include "components/bookmarks/core/browser/bookmark_model.h" 16 #include "components/bookmarks/browser/bookmark_model.h"
17 #include "components/bookmarks/core/test/test_bookmark_client.h" 17 #include "components/bookmarks/test/test_bookmark_client.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 19
20 using base::ASCIIToUTF16; 20 using base::ASCIIToUTF16;
21 21
22 namespace { 22 namespace {
23 23
24 const char kUrl1Title[] = "url1"; 24 const char kUrl1Title[] = "url1";
25 const char kUrl1Url[] = "http://www.url1.com"; 25 const char kUrl1Url[] = "http://www.url1.com";
26 const char kUrl2Title[] = "url2"; 26 const char kUrl2Title[] = "url2";
27 const char kUrl2Url[] = "http://www.url2.com"; 27 const char kUrl2Url[] = "http://www.url2.com";
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 model->root_node()->GetMetaInfo(kSyncTransactionVersionKey, &meta_value)); 466 model->root_node()->GetMetaInfo(kSyncTransactionVersionKey, &meta_value));
467 EXPECT_FALSE( 467 EXPECT_FALSE(
468 bbn->GetChild(1)->GetMetaInfo(kSyncTransactionVersionKey, &meta_value)); 468 bbn->GetChild(1)->GetMetaInfo(kSyncTransactionVersionKey, &meta_value));
469 EXPECT_TRUE(bbn->GetChild(0)->GetMetaInfo(kNormalKey, &meta_value)); 469 EXPECT_TRUE(bbn->GetChild(0)->GetMetaInfo(kNormalKey, &meta_value));
470 EXPECT_EQ("value", meta_value); 470 EXPECT_EQ("value", meta_value);
471 EXPECT_TRUE(bbn->GetChild(1)->GetMetaInfo(kNormalKey, &meta_value)); 471 EXPECT_TRUE(bbn->GetChild(1)->GetMetaInfo(kNormalKey, &meta_value));
472 EXPECT_EQ("value2", meta_value); 472 EXPECT_EQ("value2", meta_value);
473 EXPECT_TRUE(bbn->GetChild(0)->GetMetaInfo(kNestedKey, &meta_value)); 473 EXPECT_TRUE(bbn->GetChild(0)->GetMetaInfo(kNestedKey, &meta_value));
474 EXPECT_EQ("value3", meta_value); 474 EXPECT_EQ("value3", meta_value);
475 } 475 }
OLDNEW
« no previous file with comments | « components/bookmarks/browser/bookmark_codec.cc ('k') | components/bookmarks/browser/bookmark_expanded_state_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698