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

Unified Diff: chrome/installer/mini_installer/configuration_test.cc

Issue 1126163003: mini_installer: Change to use _countof rather than base's arraysize macro. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rm stdlib.h includes Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/installer/mini_installer/decompress.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/mini_installer/configuration_test.cc
diff --git a/chrome/installer/mini_installer/configuration_test.cc b/chrome/installer/mini_installer/configuration_test.cc
index 22333a1597191e37317ef4449b3d48a13541d1e1..89e7f2d298ae306e311cb17033d02244ed86f575 100644
--- a/chrome/installer/mini_installer/configuration_test.cc
+++ b/chrome/installer/mini_installer/configuration_test.cc
@@ -2,9 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "chrome/installer/mini_installer/configuration.h"
+
#include "base/basictypes.h"
#include "chrome/installer/mini_installer/appid.h"
-#include "chrome/installer/mini_installer/configuration.h"
#include "testing/gtest/include/gtest/gtest.h"
using mini_installer::Configuration;
@@ -57,9 +58,9 @@ TEST(MiniInstallerConfigurationTest, CommandLine) {
L"spam.exe",
L"spam.exe --foo",
};
- for (size_t i = 0; i < arraysize(kCommandLines); ++i) {
- EXPECT_TRUE(std::wstring(kCommandLines[i]) ==
- TestConfiguration(kCommandLines[i]).command_line());
+ for (const wchar_t* command_line : kCommandLines) {
+ EXPECT_TRUE(std::wstring(command_line) ==
+ TestConfiguration(command_line).command_line());
}
}
« no previous file with comments | « no previous file | chrome/installer/mini_installer/decompress.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698