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

Unified Diff: content/common/page_state_serialization_unittest.cc

Issue 1076443002: Removed obsolete float_util.h as VS2013 supports standards well enough. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Added missing includes everywhere. Created 5 years, 8 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
Index: content/common/page_state_serialization_unittest.cc
diff --git a/content/common/page_state_serialization_unittest.cc b/content/common/page_state_serialization_unittest.cc
index 6dc775a62493c57d8f026e5465239b4bcbd12eef..38f04f82ae616d00bfe35783f5f5e6a5258464a6 100644
--- a/content/common/page_state_serialization_unittest.cc
+++ b/content/common/page_state_serialization_unittest.cc
@@ -2,11 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <math.h>
+#include <cmath>
#include "base/base64.h"
#include "base/files/file_util.h"
-#include "base/float_util.h"
#include "base/path_service.h"
#include "base/pickle.h"
#include "base/strings/string_util.h"
@@ -47,8 +46,8 @@ void ExpectEquality(const ExplodedHttpBodyElement& a,
EXPECT_EQ(a.filesystem_url, b.filesystem_url);
EXPECT_EQ(a.file_start, b.file_start);
EXPECT_EQ(a.file_length, b.file_length);
- if (!(base::IsNaN(a.file_modification_time) &&
- base::IsNaN(b.file_modification_time))) {
+ if (!(std::isnan(a.file_modification_time) &&
+ std::isnan(b.file_modification_time))) {
EXPECT_DOUBLE_EQ(a.file_modification_time, b.file_modification_time);
}
EXPECT_EQ(a.blob_uuid, b.blob_uuid);

Powered by Google App Engine
This is Rietveld 408576698