| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |