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

Side by Side Diff: go/src/infra/gae/libs/wrapper/unsafe/memcache_test.go

Issue 1240573002: Reland: Refactor current GAE abstraction library to be free of the SDK* (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: expand coverage range to fit 32bit test expectations Created 5 years, 5 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
OLDNEW
(Empty)
1 // Copyright 2015 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 package unsafe
6
7 import (
8 "testing"
9
10 "appengine/memcache"
11
12 . "github.com/smartystreets/goconvey/convey"
13 )
14
15 func TestUnsafeMemcacheItem(t *testing.T) {
16 Convey("unsafe memcache", t, func() {
17 // kinda a bogus test, but it forces the init() to run, which ch ecks the
18 // field alignment and should panic bigtime if things are wrong.
19 itm := &memcache.Item{}
20 So(MCGetCasID(itm), ShouldEqual, 0)
21 MCSetCasID(itm, 10)
22 So(MCGetCasID(itm), ShouldEqual, 10)
23 })
24 }
OLDNEW
« no previous file with comments | « go/src/infra/gae/libs/wrapper/unsafe/memcache.go ('k') | go/src/infra/gae/libs/wrapper/unsafe/unsafe.infra_testing » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698