OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "services/shape_detection/face_detection_impl_mac.h" | 5 #include "services/shape_detection/face_detection_impl_mac.h" |
6 | 6 |
7 #include "base/base64.h" | 7 #include "base/base64.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/mac/scoped_nsobject.h" | 9 #include "base/mac/scoped_nsobject.h" |
| 10 #include "base/message_loop/message_loop.h" |
10 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
11 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "third_party/skia/include/core/SkBitmap.h" | 14 #include "third_party/skia/include/core/SkBitmap.h" |
14 #include "ui/gfx/codec/jpeg_codec.h" | 15 #include "ui/gfx/codec/jpeg_codec.h" |
15 #include "ui/gl/gl_switches.h" | 16 #include "ui/gl/gl_switches.h" |
16 | 17 |
17 using ::testing::TestWithParam; | 18 using ::testing::TestWithParam; |
18 using ::testing::ValuesIn; | 19 using ::testing::ValuesIn; |
19 | 20 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 impl_->Detect(std::move(handle), size.width(), size.height(), | 100 impl_->Detect(std::move(handle), size.width(), size.height(), |
100 base::Bind(&FaceDetectionImplMacTest::DetectCallback, | 101 base::Bind(&FaceDetectionImplMacTest::DetectCallback, |
101 base::Unretained(this))); | 102 base::Unretained(this))); |
102 | 103 |
103 run_loop.Run(); | 104 run_loop.Run(); |
104 } | 105 } |
105 | 106 |
106 INSTANTIATE_TEST_CASE_P(, FaceDetectionImplMacTest, ValuesIn({true, false})); | 107 INSTANTIATE_TEST_CASE_P(, FaceDetectionImplMacTest, ValuesIn({true, false})); |
107 | 108 |
108 } // shape_detection namespace | 109 } // shape_detection namespace |
OLD | NEW |