Skip to content

Commit

Permalink
Fix code format
Browse files Browse the repository at this point in the history
  • Loading branch information
MarekLuxoft committed Feb 24, 2025
1 parent 43b5e01 commit 5cb30ff
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 12 deletions.
8 changes: 4 additions & 4 deletions starboard/nplb/time_zone_get_current_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "time_zone_with_expect_value.h"
#include "starboard/nplb/time_zone_with_expect_value.h"

#include <gmock/gmock.h>
#include <array>

#include "starboard/extension/time_zone.h"
#include "starboard/nplb/time_constants.h"
#include "starboard/system.h"
#include "starboard/time_zone.h"
#include "testing/gtest/include/gtest/gtest.h"

#include <array>
#include <gmock/gmock.h>

namespace starboard {
namespace nplb {
namespace {
Expand Down
4 changes: 0 additions & 4 deletions starboard/nplb/time_zone_get_name_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,7 @@ TEST(SbTimeZoneGetNameTest, IsKindOfSane) {
// ":Pacific/Kiritimati" is the western-most timezone at UTC+14.
}

#if defined(_WIN32)
TEST(SbTimeZoneGetNameTest, DISABLED_IsIANAFormat) {
#else
TEST(SbTimeZoneGetNameTest, IsIANAFormat) {
#endif
const char* name = SbTimeZoneGetName();
SB_LOG(INFO) << "time zone name: " << name;
char cpy[100];
Expand Down
16 changes: 15 additions & 1 deletion starboard/nplb/time_zone_with_expect_value.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
#include "time_zone_with_expect_value.h"
// Copyright 2024 The Cobalt Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "starboard/nplb/time_zone_with_expect_value.h"

#if !defined(_WIN32)

Expand Down
24 changes: 22 additions & 2 deletions starboard/nplb/time_zone_with_expect_value.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
// Copyright 2024 The Cobalt Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef STARBOARD_NPLB_TIME_ZONE_WITH_EXPECT_VALUE_H_
#define STARBOARD_NPLB_TIME_ZONE_WITH_EXPECT_VALUE_H_

#include "starboard/time_zone.h"

#include <array>
#include <gmock/gmock.h>
#include <array>
#include <string>

struct TimeZoneWithExpectValue {
TimeZoneWithExpectValue(std::string timeZoneName_,
Expand All @@ -17,4 +35,6 @@ struct TimeZoneWithExpectValue {
SbTimeZone expectedDaylightValue;
};

extern const std::array<TimeZoneWithExpectValue, 12> timeZonesWithExpectedTimeValues;
extern const std::array<TimeZoneWithExpectValue, 12> timeZonesWithExpectedTimeValues;

#endif // STARBOARD_NPLB_TIME_ZONE_WITH_EXPECT_VALUE_H_
16 changes: 15 additions & 1 deletion starboard/nplb/time_zone_with_expect_value_win.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
#include "time_zone_with_expect_value.h"
// Copyright 2024 The Cobalt Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "starboard/nplb/time_zone_with_expect_value.h"

#if defined(_WIN32)

Expand Down

0 comments on commit 5cb30ff

Please sign in to comment.