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

Side by Side Diff: components/sync_sessions/synced_session_tracker_unittest.cc

Issue 2388973002: [Sync] Removing duplicate includes, part 2. (Closed)
Patch Set: Update for Max's comments. 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 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/sync_sessions/synced_session_tracker.h" 5 #include "components/sync_sessions/synced_session_tracker.h"
6 6
7 #include <string>
8 #include <vector>
9
10 #include "base/rand_util.h" 7 #include "base/rand_util.h"
11 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
12 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
13 #include "components/sessions/core/serialized_navigation_entry_test_helper.h" 10 #include "components/sessions/core/serialized_navigation_entry_test_helper.h"
14 #include "components/sessions/core/session_types.h"
15 #include "components/sync_sessions/fake_sync_sessions_client.h" 11 #include "components/sync_sessions/fake_sync_sessions_client.h"
16 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
17 13
18 namespace sync_sessions { 14 namespace sync_sessions {
19 15
20 namespace { 16 namespace {
21 17
22 const char kValidUrl[] = "http://www.example.com"; 18 const char kValidUrl[] = "http://www.example.com";
23 const char kInvalidUrl[] = "invalid.url"; 19 const char kInvalidUrl[] = "invalid.url";
24 20
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 GetTracker()->LookupTabNodeIds(session_tag, &result); 359 GetTracker()->LookupTabNodeIds(session_tag, &result);
364 EXPECT_EQ(1U, result.size()); 360 EXPECT_EQ(1U, result.size());
365 EXPECT_TRUE(result.find(tab_node_id_4) != result.end()); 361 EXPECT_TRUE(result.find(tab_node_id_4) != result.end());
366 362
367 GetTracker()->DeleteForeignTab(session_tag, tab_node_id_4); 363 GetTracker()->DeleteForeignTab(session_tag, tab_node_id_4);
368 GetTracker()->LookupTabNodeIds(session_tag, &result); 364 GetTracker()->LookupTabNodeIds(session_tag, &result);
369 EXPECT_TRUE(result.empty()); 365 EXPECT_TRUE(result.empty());
370 } 366 }
371 367
372 } // namespace sync_sessions 368 } // namespace sync_sessions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698