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

Side by Side Diff: chrome/browser/browsing_data/browsing_data_counter_utils_unittest.cc

Issue 2730703003: Change CBD layout and texts (Closed)
Patch Set: try fix tests Created 3 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/browsing_data/browsing_data_counter_utils.h" 5 #include "chrome/browser/browsing_data/browsing_data_counter_utils.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // The first two apps in the list are used as examples. 63 // The first two apps in the list are used as examples.
64 std::vector<std::string> examples; 64 std::vector<std::string> examples;
65 examples.assign( 65 examples.assign(
66 apps.begin(), apps.begin() + (apps.size() > 2 ? 2 : apps.size())); 66 apps.begin(), apps.begin() + (apps.size() > 2 ? 2 : apps.size()));
67 67
68 HostedAppsCounter::HostedAppsResult result( 68 HostedAppsCounter::HostedAppsResult result(
69 &counter, 69 &counter,
70 apps.size(), 70 apps.size(),
71 examples); 71 examples);
72 72
73 base::string16 output = GetChromeCounterTextFromResult(&result); 73 base::string16 output = GetChromeCounterTextFromResult(
74 &result, browsing_data::ClearBrowsingDataTab::ADVANCED);
74 EXPECT_EQ(output, base::ASCIIToUTF16(test_case.expected_output)); 75 EXPECT_EQ(output, base::ASCIIToUTF16(test_case.expected_output));
75 } 76 }
76 } 77 }
77 #endif 78 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698