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

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

Issue 2401223002: [Sync] Renaming sync/api* to sync/model*. (Closed)
Patch Set: Missed a comment in a DEPS file, and rebasing. Created 4 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
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" 13 #include "components/sync/model/attachments/attachment_id.h"
14 #include "components/sync/api/attachments/attachment_service_proxy_for_test.h" 14 #include "components/sync/model/attachments/attachment_service_proxy_for_test.h"
15 #include "components/sync/protocol/session_specifics.pb.h" 15 #include "components/sync/protocol/session_specifics.pb.h"
16 #include "components/sync_sessions/open_tabs_ui_delegate.h" 16 #include "components/sync_sessions/open_tabs_ui_delegate.h"
17 #include "components/sync_sessions/sessions_sync_manager.h" 17 #include "components/sync_sessions/sessions_sync_manager.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/?";
(...skipping 274 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

Powered by Google App Engine
This is Rietveld 408576698