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

Side by Side Diff: third_party/WebKit/Source/platform/text/ICUErrorTest.cpp

Issue 2606183002: Fix build of own emoji functions (Closed)
Patch Set: Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/text/ICUError.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
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 "platform/text/ICUError.h"
6
7 #include "testing/gtest/include/gtest/gtest.h"
8
9 namespace blink {
10
11 const UErrorCode kTestErrorCode = U_INVALID_FORMAT_ERROR;
12
13 void causeICUError(UErrorCode& err) {
14 err = kTestErrorCode;
15 }
16
17 TEST(ICUErrorTest, assignToAutomaticReference) {
18 ICUError icuError;
19 EXPECT_EQ(icuError, U_ZERO_ERROR);
20 causeICUError(icuError);
21 EXPECT_EQ(icuError, kTestErrorCode);
22 }
23
24 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/text/ICUError.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698