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

Side by Side Diff: components/sessions/core/session_types_unittest.cc

Issue 1361613002: Move all core files in //components/sessions into core/ subdir (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 2 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
« no previous file with comments | « components/sessions/core/session_types.cc ('k') | components/sessions/core/sessions_export.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "components/sessions/session_types.h" 5 #include "components/sessions/core/session_types.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "components/sessions/serialized_navigation_entry_test_helper.h" 14 #include "components/sessions/core/serialized_navigation_entry_test_helper.h"
15 #include "sync/protocol/session_specifics.pb.h" 15 #include "sync/protocol/session_specifics.pb.h"
16 #include "sync/util/time.h" 16 #include "sync/util/time.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 #include "ui/base/page_transition_types.h" 18 #include "ui/base/page_transition_types.h"
19 #include "url/gurl.h" 19 #include "url/gurl.h"
20 20
21 namespace { 21 namespace {
22 22
23 // Create a typical SessionTab protocol buffer and set an existing 23 // Create a typical SessionTab protocol buffer and set an existing
24 // SessionTab from it. The data from the protocol buffer should 24 // SessionTab from it. The data from the protocol buffer should
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 EXPECT_FALSE(sync_data.has_favicon()); 114 EXPECT_FALSE(sync_data.has_favicon());
115 EXPECT_FALSE(sync_data.has_favicon_type()); 115 EXPECT_FALSE(sync_data.has_favicon_type());
116 EXPECT_FALSE(sync_data.has_favicon_source()); 116 EXPECT_FALSE(sync_data.has_favicon_source());
117 117
118 ASSERT_EQ(2, sync_data.variation_id_size()); 118 ASSERT_EQ(2, sync_data.variation_id_size());
119 EXPECT_EQ(3312238u, sync_data.variation_id(0)); 119 EXPECT_EQ(3312238u, sync_data.variation_id(0));
120 EXPECT_EQ(3312242u, sync_data.variation_id(1)); 120 EXPECT_EQ(3312242u, sync_data.variation_id(1));
121 } 121 }
122 122
123 } // namespace 123 } // namespace
OLDNEW
« no previous file with comments | « components/sessions/core/session_types.cc ('k') | components/sessions/core/sessions_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698