Fix emulator build error
[platform/framework/web/chromium-efl.git] / base / functional / identity_unittest.cc
1 // Copyright 2020 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/functional/identity.h"
6
7 #include <vector>
8
9 #include "testing/gtest/include/gtest/gtest.h"
10
11 namespace base {
12
13 TEST(FunctionalTest, Identity) {
14   static constexpr identity id;
15
16   std::vector<int> v;
17   EXPECT_EQ(&v, &id(v));
18
19   constexpr int arr = {0};
20   static_assert(arr == id(arr), "");
21 }
22
23 }  // namespace base