summaryrefslogtreecommitdiff
path: root/chrome_to_android_compatibility_test_support.h
blob: c2e4c9072c24afaad3e2eab94e49c8355624966a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#pragma once

#include "base/time/time.h"

namespace base {

/**
 * Workaround for the error in unit tests: ISO C++20 considers use of overloaded
 * operator '==' (with operand types 'const base::TimeTicks'
 * and 'const base::TimeTicks') to be ambiguous despite there being a unique
 * best viable function [-Werror,-Wambiguous-reversed-operator]
 */
bool operator==(const TimeTicks& t1, const TimeTicks& t2);

}  // namespace base