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

Side by Side Diff: chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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/ui/toolbar/recent_tabs_builder_test_helper.h" 5 #include "chrome/browser/ui/toolbar/recent_tabs_builder_test_helper.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/rand_util.h" 9 #include "base/rand_util.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
11 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "components/sync/api/attachments/attachment_id.h"
14 #include "components/sync/core/attachments/attachment_service_proxy_for_test.h"
15 #include "components/sync/protocol/session_specifics.pb.h"
13 #include "components/sync_sessions/open_tabs_ui_delegate.h" 16 #include "components/sync_sessions/open_tabs_ui_delegate.h"
14 #include "components/sync_sessions/sessions_sync_manager.h" 17 #include "components/sync_sessions/sessions_sync_manager.h"
15 #include "sync/api/attachments/attachment_id.h"
16 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test .h"
17 #include "sync/protocol/session_specifics.pb.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 19
20 namespace { 20 namespace {
21 21
22 const char kBaseSessionTag[] = "session_tag"; 22 const char kBaseSessionTag[] = "session_tag";
23 const char kBaseSessionName[] = "session_name"; 23 const char kBaseSessionName[] = "session_name";
24 const char kBaseTabUrl[] = "http://foo/?"; 24 const char kBaseTabUrl[] = "http://foo/?";
25 const char kTabTitleFormat[] = "session=%d;window=%d;tab=%d"; 25 const char kTabTitleFormat[] = "session=%d;window=%d;tab=%d";
26 26
27 struct TitleTimestampPair { 27 struct TitleTimestampPair {
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 tab->set_current_navigation_index(0); 299 tab->set_current_navigation_index(0);
300 tab->set_pinned(true); 300 tab->set_pinned(true);
301 tab->set_extension_app_id("app_id"); 301 tab->set_extension_app_id("app_id");
302 sync_pb::TabNavigation* navigation = tab->add_navigation(); 302 sync_pb::TabNavigation* navigation = tab->add_navigation();
303 navigation->set_virtual_url(ToTabUrl(session_id, window_id, tab_id)); 303 navigation->set_virtual_url(ToTabUrl(session_id, window_id, tab_id));
304 navigation->set_referrer("referrer"); 304 navigation->set_referrer("referrer");
305 navigation->set_title(base::UTF16ToUTF8(GetTabTitle( 305 navigation->set_title(base::UTF16ToUTF8(GetTabTitle(
306 session_index, window_index, tab_index))); 306 session_index, window_index, tab_index)));
307 navigation->set_page_transition(sync_pb::SyncEnums_PageTransition_TYPED); 307 navigation->set_page_transition(sync_pb::SyncEnums_PageTransition_TYPED);
308 } 308 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/base_panel_browser_test.cc ('k') | chrome/browser/ui/toolbar/recent_tabs_sub_menu_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698