diff options
author | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-06 06:48:06 +0000 |
---|---|---|
committer | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-06 06:48:06 +0000 |
commit | d06bece275c6fc1f45f5335cae52017f22108fbe (patch) | |
tree | b748c0c04cc37c7118ad1ea57fc3f6fa18c85c5f /chrome/browser/ui/webui | |
parent | 0460e548d11b453187daca52bd7a06d240232311 (diff) | |
download | chromium_src-d06bece275c6fc1f45f5335cae52017f22108fbe.zip chromium_src-d06bece275c6fc1f45f5335cae52017f22108fbe.tar.gz chromium_src-d06bece275c6fc1f45f5335cae52017f22108fbe.tar.bz2 |
Rewrite scoped_array<T> to scoped_ptr<T[]> in chrome, Linux edition.
This changelist was automatically generated using a clang tool.
BUG=171111
Review URL: https://codereview.chromium.org/13541005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192712 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/webui')
-rw-r--r-- | chrome/browser/ui/webui/ntp/suggestions_combiner_unittest.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/browser/ui/webui/ntp/suggestions_combiner_unittest.cc b/chrome/browser/ui/webui/ntp/suggestions_combiner_unittest.cc index 3165ad3..d820d70 100644 --- a/chrome/browser/ui/webui/ntp/suggestions_combiner_unittest.cc +++ b/chrome/browser/ui/webui/ntp/suggestions_combiner_unittest.cc @@ -250,13 +250,12 @@ TEST_F(SuggestionsCombinerTest, SourcesAreNotDoneFetching) { } TEST_F(SuggestionsCombinerTest, TestSuite) { - size_t test_count = sizeof(test_suite)/sizeof(test_suite[0]); + size_t test_count = arraysize(test_suite); for (size_t i = 0; i < test_count; ++i) { const TestDescription& description = test_suite[i]; - size_t source_count = - sizeof(description.sources)/sizeof(description.sources[0]); + size_t source_count = arraysize(description.sources); - scoped_array<SuggestionsSourceStub*> sources( + scoped_ptr<SuggestionsSourceStub*[]> sources( new SuggestionsSourceStub*[source_count]); // Setup sources. |