| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 <functional> | 5 #include <functional> |
| 6 #include <numeric> | 6 #include <numeric> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/file_util.h" | |
| 11 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/files/file_util.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 #include "skia/ext/convolver.h" | 14 #include "skia/ext/convolver.h" |
| 15 #include "skia/ext/recursive_gaussian_convolution.h" | 15 #include "skia/ext/recursive_gaussian_convolution.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 #include "third_party/skia/include/core/SkPoint.h" | 17 #include "third_party/skia/include/core/SkPoint.h" |
| 18 #include "third_party/skia/include/core/SkRect.h" | 18 #include "third_party/skia/include/core/SkRect.h" |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 box.bottom() - spread), | 386 box.bottom() - spread), |
| 387 kImgWidth); | 387 kImgWidth); |
| 388 // Since second derivative is not really used and implemented mostly | 388 // Since second derivative is not really used and implemented mostly |
| 389 // for the sake of completeness, we do not verify the detail (that dip | 389 // for the sake of completeness, we do not verify the detail (that dip |
| 390 // in the middle). But it is there. | 390 // in the middle). But it is there. |
| 391 EXPECT_EQ(box_deflated, 0); | 391 EXPECT_EQ(box_deflated, 0); |
| 392 EXPECT_EQ(image_total, box_inflated); | 392 EXPECT_EQ(image_total, box_inflated); |
| 393 } | 393 } |
| 394 | 394 |
| 395 } // namespace skia | 395 } // namespace skia |
| OLD | NEW |